Sprite Will Not Move When Pressing Keys
📌 What you will learn
Fix the #1 beginner bug: missing "forever" loop around "if <key pressed?>" or missing hat block.
Core approach
An "if <key pressed?>" snapped directly under "When green flag clicked" checks only for 1 millisecond and stops. Wrap it inside a "forever" loop!
- Confirm a hat block ("When green flag clicked") sits at the top.
- Wrap continuous key checks inside "forever".
- Check that you did not accidentally put code on the Stage or a different sprite.
Pro tip & next steps
A glowing yellow outline around a script shows it is actively running.
FAQ
What is the best first step for "Sprite Will Not Move When Pressing Keys"?
Confirm a hat block ("When green flag clicked") sits at the top. A glowing yellow outline around a script shows it is actively running.
This guide is provided for educational purposes. Scratch screens and terms may change over time, so please check the official Scratch website as well.