Motion Blocks
Learn how sprites move, turn, and use x-y coordinates on the Scratch stage.
Three ideas to keep separate
Move steps follows the sprite’s current direction. Change x or y changes its position directly. Turn changes its direction without moving it. These actions are related, but they are not interchangeable.
- Use steps for movement in the direction the sprite faces.
- Use x and y when you need to place a sprite at a precise position.
- Use turn blocks to change the direction before moving.
Understand the stage coordinates
The center of the Scratch stage is (0, 0). Positive x moves right, negative x moves left, positive y moves up, and negative y moves down.
- When green flag clicked
- Set rotation style to left-right
- Forever
- Move 5 steps
- If on edge, bounce
Try it: The sprite travels across the stage and bounces at the edges. Try changing 5 to 2 or 8 and compare the speed.
Common mistakes
If a sprite appears upside down, check its rotation style. If it disappears, check its x and y coordinates. If it moves in an unexpected direction, inspect its direction value before changing the number of steps.
Scratch is a project of the Scratch Foundation. Product availability, software support, and platform requirements may change; check official documentation before use.
Explore books, learning kits, and tools →