Today you will pause a script until a condition becomes true.
1 Warm-Up
2 Predict
3 Try It
4 Plan
5 Build
6 Fix It
7 Extend
8 Math Challenge
For teachers · goals · guide
Lesson Outcomes · for teachersCSTA 2
✦ CSTA 2-AP-10 · ISTE 1.5.c · Standards
| 🎯 I can | pause a script until a condition becomes true |
| 🧩 New blocks | 1 block |
| 📝 New words | 5 words |
| ⏱ Lesson time | ~35 min |
Teacher Guide
📋 Before class
⚠️ Common misconceptions
- Students often confuse wait until with forever + if. wait until pauses the whole script; forever + if keeps running other code inside the loop.
- Students may think wait until checks only once, like if. Clarify: it keeps checking every frame until the condition is true, then releases.
🎯 Differentiation
🐢 Struggling: Show the timeline: script frozen here → condition becomes true → script continues. Draw it on paper.
🚀 Advanced: Challenge them to chain two wait until blocks in sequence: wait until touching wall, then wait until timer > 3.
💡 During the lesson
- Warm-UpAsk: "What is a rule you follow only when something else happens first?" (Wait for the bell, wait until your name is called.) Connect this to the concept of a condition gate. When the condition is finally met, the script can resume ▶️ — continue after its pause.
- Try ItProject all three side by side. Ask: "If you pick 3 seconds, which script says its message?" (if: only when its wait is past 2 · forever + if: yes, while Pico walks · wait until: yes, standing still.) Then ask: "What is different about wait until vs forever + if?" (wait until stops everything until the moment; forever + if keeps looping forever.)
The first experiment is the key insight. Clicking the green flag already resets the project timer, so it acts as ifreset timerwere there.reset timermatters when a script starts from another event (a key press or a broadcast) long after the flag. Ask: "Why does the first experiment still wait?" - PlanTwo sprites need two scripts. The Pico script uses forever to move. The Star script uses wait until. Point out that the two scripts run at the same time.
- BuildStep 7 reuses broadcast (from Level 2) as the way two sprites talk to each other. The key observation in step 10: wait until works regardless of speed.
Show the picture first. Ask what will happen — everyone points or says one word.
Everyone picks an answer first. Then press the flag together.
Change one thing at a time. Run it, watch, then change the next thing.
Pairs put the cards in order before anyone opens Scratch.
Students build step by step. Walk around — help with questions, not with the mouse.
Ask: what did we want, and what did it do? Let them find it.
Fast finishers pick the next tier. Everyone else finishes their build.
Work it out on paper first. Then check it on the stage.