Scratch LoopsForever, Repeat & Until
Master all three types of loops in Scratch. Learn how to animate sprites, draw shapes, build timers, and create game logic β all using loops!
What is a Loop?
π What is a Loop?
Imagine you want your sprite to move 10 steps β not once, but 50 times in a row. Would you stack 50 "move 10 steps" blocks? That would take forever! A loop solves this: it runs the same blocks over and over automatically, without you having to repeat yourself.
β Without a loop (messy!)
move 10 steps
move 10 steps
move 10 steps
β¦ (Γ50 times)
β With a loop (clean!)
repeat (50)
move 10 steps
end
Done in 2 lines!
π§ Key Idea
A loop is a block that wraps around other blocks and runs them multiple times. Scratch has three types of loops:
- Forever β repeats endlessly
- Repeat (N) β repeats a set number of times
- Repeat Until β repeats until a condition becomes true
π Real-world analogy
Think of brushing your teeth. You don't just move the brush once β you keep repeating the motion for 2 minutes. That repetition is a loop! Every time you go back and forth, you're running one iteration of the loop.
βΎοΈ
Forever
Animations, game logic
π’
Repeat (N)
Known repetitions
π―
Repeat Until
Condition-based stopping
Go Further with Live 1-on-1 Scratch Tutors
Worksheets are great β but live mentorship accelerates learning 10Γ. Join our Scratch Programming Course for Kids and build 20+ real games & animations with expert guidance.