Category:Actions

The edges of the display block the sprite from moving.

The edges of the display can be used as a barrier to contain sprites. Whenever a sprite touches one of the four edges of the display, it will stop moving.

Examples

The sprite can move anywhere in the display, but it cannot go beyond the edges.

Parameters

NameDescription
sprite The sprite or sprite group blocked by the edges

Found a bug in the documentation? Let us know at documentation@code.org