🧠Concept
Pick the right answer.
<touching color [#FF0000]?> and <color [#FF0000] is touching [#00FF00]?>?<color [#FFD700] is touching [#8B4513]?>. What does the first color (#FFD700) represent?color is touching color more useful than touching color for detecting whether a character's feet touch a platform?👀Code Reading
Look at the blocks. Predict what happens.
when flag clicked
forever
if <color [#00FF00] is touching [#FF0000] ?> then
say [Hit a hazard!] for (1) secs
change [lives v] by (-1)
go to x: (-150) y: (0)
end
endwhen flag clicked
forever
if <<color [#FFD700] is touching [#8B4513] ?> and <color [#4169E1] is touching [#FF0000] ?>> then
say [Both at once?!] for (1) secs
end
endwhen flag clicked
forever
if <color [#FFD700] is touching [#8B4513] ?> then
set [on ground v] to [true]
end
end🐛Find the Bug
Something is broken. Pick the fix.
This script is supposed to detect when Pico's feet (yellow, #FFD700) touch the brown platform (#8B4513) and say "Landed!". It never triggers even when Pico is clearly standing on the platform. What is wrong?
when flag clicked
forever
if <color [#8B4513] is touching [#FFD700] ?> then
say [Landed!] for (1) secs
end
end🛠️Build It
Pick a level. Build it. Check the boxes.
Tell when feet touch the ground.
More
Create a sprite with two costume zones in different colors (paint feet yellow, body blue). Draw a brown rectangle on the stage as a platform. Add a forever loop that checks if the yellow feet color is touching the brown platform. When detected, set a variable on ground to true, otherwise set it to false.
Done when
The sprite has two visible color zones. The brown platform is drawn on the stage. The on ground variable switches correctly as the sprite moves on and off the platform.
Lose a life at the red hazard.
More
Extend the EASY project. Add a red hazard shape on the stage. Add a second color detection check inside the forever loop: if the blue body color is touching the red hazard, change a lives variable by -1 and reset the sprite to its starting position. Add a lives = 0 check that shows "Game Over" and stops the project.
Done when
Both color checks run at the same time. Lives decrement on hazard contact. Position resets after each hit. Game Over triggers when lives reach 0.
Collect the coin to score.
More
Build a three-zone detection system. Add a yellow coin shape on the stage. Add a third color check: if the body color is touching the yellow coin color, add 10 to score and hide the coin. Use the color eyedropper tool for all three hex values. Add a visible score and lives display. Extend: add a second hazard with a different color that freezes the sprite for 2 seconds instead of reducing lives.
Done when
All three detections work independently. Eyedropper was used (hex values match the actual drawn colors). Score increments on coin collect. Freeze behavior is separate from life-loss behavior.
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 project.
- 2️⃣Point to
color is touching color. - 3️⃣Run it and show one collision that the precise block detects.
Watch the student present, then check each thing they did.
Presentation Checklist
0 of 3 ticked
📤Submit
Send your results to your teacher and parent.
0 of 0 answered