# How to Move a Sprite in 4 Directions (Top-Down) in Scratch > Combine up/down y changes and left/right x changes for mazes and RPGs. Learn how to move a sprite in 4 directions (top-down) in Scratch with clean block recipes, testing tips, and related guides. ## 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 then change y by (5) - if then change y by (-5) - if then change x by (5) - if 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](/en/projects/action/): Explore full mechanics and variations. - [All 120 Scratch How-To Recipes](/en/howto/): Return to the reverse lookup index. Updated: 2026-11-24 Author: [Takamasa Suzuki](https://scratch.gmnavi.jp/about/author/) Japanese Edition: https://scratch.gmnavi.jp/howto/four-way-move/ [Scratch Daizen (English)](https://scratch.gmnavi.jp/en/)