The Repeat Loop
The repeat (10) block runs the blocks inside it a specific number of times, then stops.
Difference from Forever
- forever — never stops on its own.
- repeat (10) — stops after exactly 10 times.
Example: Drawing a Square
- When 🏁 clicked
- repeat (4)
- move (100) steps
- turn ↻ (90) degrees
Run it — the sprite traces a perfect square! Without the loop you’d need 8 separate blocks.