Level 2

Is It Touching?

Level 2 · Chapter 8

What this lesson follows

CSTA K–12 Computer Science Standards (2017)

Algorithms & Programming · Grades 3–5

Use events, loops and if-then in one program.

Code 1B-AP-10Read the official text

Also practised: 1B-AP-15

Common Core State Standards for Mathematics

Operations & Algebraic Thinking · Grade 3

Solve two-step stories and spot number patterns.

Code 3.OA.D.9Read the official text

The short lines are our own words. We matched this lesson to these standards ourselves; the standards' owners have not reviewed or endorsed this course.

Common Core State Standards © 2010 National Governors Association Center for Best Practices and Council of Chief State School Officers. All rights reserved.

Today you will detect when a sprite touches another sprite or edge.

1👋 Warm-Up

For teachers · goals · guide
Lesson Outcomes · for teachersCSTA 1B
✦ CSTA 1B-AP-10 · CSTA 1B-AP-15 · ISTE 1.5.a · Standards
🎯 I candetect when a sprite touches another sprite or edge
🧩 New blocks1 block
📝 New words6 words
⏱ Lesson time~35 min
Teacher Guide

📋 Before class

⚠️ Common misconceptions

  • Students may think touching edge? reports a number — clarify it only reports true or false.
  • Students may not see the say bubble change because the cat moves fast — remind them to watch the bubble flip from false to true.
  • Some students confuse forever with repeat — clarify forever never stops on its own.

🎯 Differentiation

🐢 Struggling: Provide the full stack pre-built. Student only watches the bubble flip from false to true. Focus on the diamond shape of the sensing block.

🚀 Advanced: Ask the cat about a second sprite too — report touching [Sprite2 ▾]? next to touching [edge ▾]? and compare the two true/false answers.

💡 During the lesson

  • Warm-UpMime walking with eyes closed toward a wall. Ask: "How does my hand know it touched the wall?" (It felt it — that is sensing.) Then ask: "Can a computer sprite feel?" Build curiosity before screens. Key words today: the sprite can detect 🕵️ a touch 🖐️ — a hit 💥, or collision 💢, is when two things meet. Next chapter, the cat will act on this true or false.
    Point to the last frame. Ask: "What changed when the cat touched the edge?" (It started to sense it.) Ask: "What if there was no wall?" (Cat would keep going.) Emphasize the edge as the thing the cat senses.
  • Try ItHave students run Experiment 2 and watch the bubble flip from false to true. In Experiment 1, only the start near the edge says true. In Experiment 3, pick 90 or 180 — the cat turns back and never reaches the edge, so the bubble stays false. This shows "the sensing block reports a value you can show."
  • PlanDo the first box together. Pick, then watch both stages. "Flag clicked — start. Part 1 — move. Part 2 — ask: touching edge? Part 3 — say the answer." Parts 2 and 3 are one block: say shows what touching edge? answers. Ask: "Which parts go inside forever?" (Move, ask and say.) The forever loops back, so the cat keeps sensing.
  • BuildWatch for students who put move outside forever — it will only run once. Remind them the diamond block reports true or false, and say shows that value in a bubble.