Today you will read the mouse position and use it to move sprites.
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 1B
✦ CSTA 1B-AP-10 · CSTA 1B-AP-15 · ISTE 1.5.a · Standards
| 🎯 I can | read the mouse position and use it to move sprites |
| 🧩 New blocks | 2 blocks |
| 📝 New words | 5 words |
| ⏱ Lesson time | ~40 min |
Teacher Guide
📋 Before class
⚠️ Common misconceptions
- Students may put
mouse xin the y box andmouse yin the x box — the cat then follows in a mirrored, diagonal way. Check the boxes. - Students may confuse this with
go to [mouse-pointer ▾]— that is one block; usingmouse xandmouse yseparately gives more control.
🎯 Differentiation
🐢 Struggling: Draw two axes on paper. Mark an X point and a Y point. Ask: 'If the mouse moves right, which number changes?' (X.) Physically move a finger across the page.
🚀 Advanced: Put (mouse x) in the x box but a fixed number in the y box of go to x: () y: () — cat tracks left/right but stays at one height. Perfect for a paddle. Ask: which axis should a paddle follow?
💡 During the lesson
- Warm-UpMove the mouse slowly around a projected Scratch stage running
forever+say (join (mouse x) (join [, ] (mouse y)))so the numbers show live. Students call out "Up!" "Left!" "Down!" as you move. Ask: "Which number changes when I move left?" (X.) "Which when I move up?" (Y.) Left-and-right movement is horizontal 🌅; up-and-down is vertical.
Emphasize that the cat jumps with no slow moving — it is there right away. Ask: "Is this different frompoint towards mouse + move?" (Yes — that one is slow; this jumps right away.) Students will see the difference in Fix It. - Try ItShow
(mouse x)and(mouse y)from the 🔵 Sensing group. Click each to see its number; move the mouse and click again to see it change.mouse xchanges left-right;mouse ychanges up-down. Drop them into the boxes ofgo to x: () y: ()(from earlier) to make the cat jump to the cursor.
Let students try the experiments on their own Scratch stage. Ask them to describe in ONE word what each version does. Vocabulary to reinforce: "both axes" vs. "one axis." For the paddle game connection: "A paddle only needs to follow left/right — which experiment puts the cat at the bottom and follows left/right?" (Experiment 1 with y at -130.)
In the block box and the Plan, the mouse waits in the middle of the stage. So «under the mouse» is x = 0 and «level with the mouse» is y = 0. Ask: "Which hole holds the mouse, and which holds a number?" - PlanAsk: "Why is this inside a forever loop?" (So it updates every frame — if it ran once, the cat would only go to one position and stop.) Students who forget the forever loop will see exactly that behavior in Build.
- BuildAfter step 4, ask students to move the mouse to each corner of the stage. The cat should follow right away. Common issue: students put
mouse xin the y box andmouse yin the x box — cat follows diagonally in a mirrored way. Let them discover and correct it.
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.