touching Lava?test sprite contact
Public lesson / Scratch & Game Design
The floor looks extremely lava-like, but the computer does not care about appearances. What exactly counts as touching danger, and how often should the game check?
Lesson rhythm
Name the problem before opening the build.
Make the hidden rule visible with small tests.
Use the idea inside a working project system.
Change one rule and predict the effect.
Explain the result, save safely, and leave a known state.
Learning goals
Theory kernel
touching Lava?test sprite contact
touching colour red?test a map region
distance to hazard < 40test nearness
if touching then set stateturn sensing into behaviour
Guided-build preview
Cross a room whose floor has become lava for reasons the building manager refuses to explain.
Horizontal movement, A controlled jump, Safe platforms, Lava collision.
Sensing, Collision, Coordinates, Variables, Game State.
A working version, one modification, one repaired problem, and an explanation.
Teacher checkpoints
Common mistakes
Modification challenge
Higher levels are optional. They deepen the current idea rather than turning a beginner lesson into an unrelated advanced task.
End-of-class demonstration