forever — Scratch Block Guide
Repeats the enclosed blocks continuously (~30 times per second) until stopped.
What this block does
Repeats the enclosed blocks continuously (~30 times per second) until stopped.
Forms the main game loop for controls, physics, and collision checks.
- Category: Control Blocks
- Key tip: Notice the flat bottom—no block can snap underneath a forever loop.
Working Scratch example
Try building this small script in the Scratch editor, predict what will happen, then click the green flag to test it.
- When green flag clicked
- Forever
- If key (right arrow) pressed? then
- Change x by 5
Try it: Checks keyboard input smoothly throughout the entire game.
Related block guides
Explore other blocks in the same category or return to the full English Block Dictionary.
FAQ
When should I use "forever" in Scratch?
Forms the main game loop for controls, physics, and collision checks. Notice the flat bottom—no block can snap underneath 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.