🐱 Scratch for Kids · Lesson 2 of 7
Loops: doing things again
“repeat” and “forever” — the cat bounces between the walls.
Why loops?
Want the cat to walk 10 times? You could snap 10 “move” blocks… or use one loop. Loops are in Control (orange).
Two kinds of loops
| repeat 10 | Does what is inside 10 times, then continues |
|---|---|
| forever | Does what is inside until you click stop |
The bouncing cat
- when green flag clicked
- forever
- move 10 steps
- if on edge, bounce
- Click the flag — the cat walks back and forth forever
Fixing the upside-down cat
When it bounces, the cat flips upside down. Add “set rotation style left-right” (Motion) before the loop. Now it just turns around.
Tip
💡 Add “next costume” and “wait 0.1 seconds” inside the loop, and the cat looks like it’s really walking.
✏️ Practice: your turn
- Make the cat bounce between the walls forever
- Fix the rotation style
- Make it walk with “next costume”
- Try “repeat 4” with “move 100” and “turn 90” — what shape does it make?
🧠 Quick quiz
Answer all 4 questions correctly to mark this lesson as done.
0 of 4 correct
All lessons in Scratch for Kids
- 🚩 1. Getting started: sprite, stage and green flagOpen a project and make the cat move and talk
- 🔁 2. Loops: doing things again“repeat” and “forever” — the cat bounces between the walls
- ⌨️ 3. Keyboard controlsMove a sprite with the arrow keys
- 🎵 4. Costumes, backdrops and soundsSimple animation, a stage backdrop and a sound for each action
- 🍎 5. Conditions: “if… then”The apple falls, and if it touches the basket, something happens
- 🔢 6. Variables: score and timeCount apples, and a 30-second timer
- 🏆 7. A complete game, and sharing itFinish up, add a level and share with friends