How to Move a Sprite in 4 Directions (Top-Down) in Scratch
📌 What you will learn
Combine up/down y changes and left/right x changes for mazes and RPGs.
Minimal Working Block Recipe
Combine up/down y changes and left/right x changes for mazes and RPGs.
Test this minimal version first, then tune numbers like speed, gravity, or timing to match your game feel.
Move a Sprite in 4 Directions (Top-Down) script
- forever
- if key [up arrow] pressed? then change y by 5
- if key [down arrow] pressed? then change y by -5
- if key [right arrow] pressed? then change x by 5
- if key [left arrow] pressed? then change x by -5
Try it: Smooth top-down movement across the stage.
Debugging Checklist & Next Steps
If it behaves unexpectedly, verify initial variable resets on the green flag and check that continuous checks sit inside a forever loop.
This guide is provided for educational purposes. Scratch screens and terms may change over time, so please check the official Scratch website as well.