NEW Explore the Scratch Block Dictionary, tutorials, textbook, and classroom guides

Start learning →

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
  1. forever
  2. if key [up arrow] pressed? then change y by 5
  3. if key [down arrow] pressed? then change y by -5
  4. if key [right arrow] pressed? then change x by 5
  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.

Related Deep-Dive Guide Explore full mechanics and variations. Learn more → All 120 Scratch How-To Recipes Return to the reverse lookup index. Learn more →

This guide is provided for educational purposes. Scratch screens and terms may change over time, so please check the official Scratch website as well.