🧠Concept
Pick the right answer.
(distance to [mouse-pointer ▾]) report?(distance to [mouse-pointer ▾]) is an oval (number) block. Can you put it directly inside if <> then?👀Code Reading
Look at the blocks. Predict what happens.
when flag clicked forever if <(distance to [mouse-pointer v]) < (50)> then say [Too close!] for (1) seconds end end
50 to 200. What happens to the detection zone?when flag clicked forever if <(distance to [mouse-pointer v]) < (200)> then say [Too close!] for (1) seconds end end
when flag clicked forever if <(distance to [mouse-pointer v])> then say [Close!] end end
🐛Find the Bug
Something is broken. Pick the fix.
This code does not work. What must be changed?
when flag clicked forever if <(distance to [mouse-pointer v])> then say [Close!] end end
🛠️Build It
Pick a level. Build it. Check the boxes.
Cat grows when the mouse is close.
More
Make the cat say "Too close!" AND grow with change size by (5) when the mouse is fewer than 50 pixels away.
Done when
Cat speaks and visibly grows exactly when the mouse enters the 50-pixel zone. Cat is silent when the mouse is farther away.
Cat says Near! or Far! by distance.
More
Make the cat say "Near!" when distance is less than 80, and "Far!" when distance is more than 150. Use two if blocks.
Done when
Cat correctly says the right word for each zone. Both conditions work independently.
Two zones: Too close! and Danger!
More
Make the cat say "Too close!" when the mouse is less than 60 pixels away and say "Danger!" when less than 30. Use two sequential if blocks with plain say: put the 60 check first and the 30 check second.
Done when
Under 30 pixels, the cat says "Danger!". From 30 to 59 pixels, the cat says "Too close!". The second if runs last, so its word stays on screen. Plain say keeps the last word after the mouse leaves; that is fine.
Review the student's project, then check each thing they did.
Project Evaluation
0 of 4 ticked
💬Talk About It
Present your project to your teacher or a classmate.
- 1️⃣Show your distance sensor to a partner.
- 2️⃣Point to your distance number.
- 3️⃣Ask them to test it by moving the mouse.
Watch the student present, then check each thing they did.
Presentation Checklist
0 of 4 ticked
📤Submit
Send your results to your teacher and parent.
0 of 0 answered