Level 3

Set X and Y

Level 3 · Chapter 14

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

Number & Operations in Base Ten · Grade 4

Multiply and divide many-digit numbers.

Code 4.NBT.B.5Read 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 control horizontal and vertical movement independently.

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 cancontrol horizontal and vertical movement independently
🧩 New blocks3 blocks
📝 New words5 words
⏱ Lesson time~40 min
Teacher Guide

📋 Before class

⚠️ Common misconceptions

  • Students confuse set x (snap to position) with change x by (move by an amount). Show both side by side.
  • Students expect positive y to go down — remind them Scratch y is opposite to screen pixel coordinates. Positive y = UP.

🎯 Differentiation

🐢 Struggling: Draw a + sign on the board. Label the four ends: RIGHT (+x), LEFT (-x), UP (+y), DOWN (-y). Keep it visible the whole lesson.

🚀 Advanced: Challenge: the Build adds one boundary on the right. Copy the same if shape for the left edge (set x to (-200)). Warn: touching edge is true at ANY edge, so keep the cat near the middle line (y = 0).

💡 During the lesson

  • Warm-UpAsk students to stand up. Call out directions: "Move LEFT only!" (shuffle left), "Move UP only!" (jump), "Move RIGHT only!" (shuffle right). After a few rounds, say: "In Scratch, you do the same thing with four blocks." This kinesthetic warm-up builds axis intuition before the screen.
    Follow the map scene and write the coordinates on the board: (0,0) → (80,0) → (80,60) → (-120,60). Ask students to read the coordinates aloud. Connect to math: "This is exactly like a graph with x and y axes — you have used these in math class."
  • Try ItAfter experiment 1, ask: "Did the cat go up?" (Only when y is more than 0.) After experiment 2, ask which number made it slide left. After experiment 3, point out the difference: set x to SNAPS, change x by SLIDES. This compare-by-doing builds the core misconception fix.
  • PlanAsk: "If right arrow adds 10 to x, what should left arrow do?" (change x by -10.) "If up arrow adds 10 to y, what should down arrow do?" (change y by -10.) Let students complete this logic before building. The negative delta is the key insight.
  • BuildStep 4 is the pattern lesson: hold the four scripts side by side and ask "What is the same? What is different?" (Same shape; only the key and the number differ.) Name it aloud — "one shape, four copies." At step 6, the if turns that pattern into a rule: the boundary block runs only when the cat touches the edge. Ask: "Before step 6, what happened if you held the right arrow?" (The cat pushed against the edge and stuck there without a rule.)