🐱 Scratch for Kids · Lesson 5 of 7

Conditions: “if… then”

Google Classroom

The apple falls, and if it touches the basket, something happens.

If… then

A condition lets the program decide: “if the apple touches the basket, then…”. The “if then” block is in Control, and “touching ___?” is in Sensing.

The falling apple

  1. when green flag clicked → go to x: (pick random -200 to 200) y: 170
  2. forever
  3. change y by -5 (falls down)
  4. if touching Basket? then → start sound Pop → go to x: (pick random -200 to 200) y: 170
  5. if y position < -170 then → go to the top again (missed!)

Random

“pick random -200 to 200” (Operators, green) makes the apple start in a different place each time. Without it, the game is too easy.

Tip

💡 Want it harder? Change “change y by -5” to -8. Bigger number = faster apple.

✏️ Practice: your turn

  1. Make the apple fall from a random spot
  2. When it touches the basket: a sound and back to the top
  3. When it reaches the bottom: back to the top
  4. Try different speeds

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

🧠 Quick quiz

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

1. Where is the “touching ___?” block?
2. What does “change y by -5” do?
3. Why use “pick random”?
4. How do you make the apple fall faster?

0 of 4 correct