Moves a sprite or group of sprites the given number of pixels in the selected direction.
This block lets sprites move around the display. A sprite can move in four directions, and a default number block is given to specify how many pixels the sprite will move at a time.
The most common use of this block outside of behaviors is to make a sprite move with the arrow keys.
| Name | Description |
|---|---|
| sprite | The sprite or sprite group moving |
| number | Number of pixels the sprite moves |
| direction | The direction the sprite moves in: north, east, south, west |
Found a bug in the documentation? Let us know at documentation@code.org