🐱 Scratch for Kids · Lesson 2 of 7

Loops: doing things again

Google Classroom

“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 10Does what is inside 10 times, then continues
foreverDoes what is inside until you click stop

The bouncing cat

  1. when green flag clicked
  2. forever
  3. move 10 steps
  4. if on edge, bounce
  5. 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

  1. Make the cat bounce between the walls forever
  2. Fix the rotation style
  3. Make it walk with “next costume”
  4. Try “repeat 4” with “move 100” and “turn 90” — what shape does it make?

✏️ Open the Scratch editor (free, in the browser) ↗

🧠 Quick quiz

Answer all 4 questions correctly to mark this lesson as done.

1. What does “repeat 10” do?
2. Which loop never stops on its own?
3. What does “if on edge, bounce” do?
4. How do you stop the cat flipping upside down?

0 of 4 correct