Motion blocks
Motion blocks move and rotate sprites on the stage. They have no effect on the stage itself, so the palette shows a reduced set when the stage is selected. Positions use Scratch coordinates: x runs left (negative) to right (positive), y runs down (negative) to up (positive), and 0,0 is the centre.
Moving
- move
10steps moves the sprite forward in the direction it is facing. - go to x:
0y:0jumps the sprite to an exact position. - go to
random position/mouse-pointer/ sprite jumps to a target, a random spot, or the mouse. - glide
1secs to x:0y:0moves smoothly to a position over the given time. - glide
1secs torandom position/mouse-pointer/ sprite glides smoothly to a target. - change x by
10/ set x to0adjusts or sets the horizontal position. - change y by
10/ set y to0adjusts or sets the vertical position.
Turning and direction
- turn right
15degrees / turn left15degrees rotates the sprite. - point in direction
90faces a compass direction (90 is right, 0 is up, -90 is left, 180 is down). - point towards
mouse-pointer/ sprite faces a target. - if on edge, bounce reverses direction when the sprite hits the edge of the stage.
- set rotation style
left-right/don't rotate/all aroundcontrols how the sprite visually rotates.
Reporters
- x position reports the current x coordinate.
- y position reports the current y coordinate.
- direction reports the current direction in degrees.
Bilup and TurboWarp extras
These motion blocks are not in stock Scratch:
- point towards x:
0y:0faces a specific coordinate instead of picking a target from a menu. - point towards x:
0y:0from x:0y:0faces from one coordinate toward another.
See Bilup extras for the full list of added blocks.
See also
- The stage
- Sprites
- Sensing blocks for reading positions of other sprites