Level 4

Glide to a Position

Level 4 · Chapter 2

What this lesson follows

CSTA K–12 Computer Science Standards (2017)

Algorithms & Programming · Grades 6–8

Plan a hard problem with a flowchart or pseudocode.

Code 2-AP-10Read the official text

Common Core State Standards for Mathematics

Number & Operations — Fractions · Grade 5

Multiply and divide with fractions.

Code 5.NF.B.7Read 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 move sprites smoothly between positions using glide.

1👋 Warm-Up

For teachers · goals · guide
Lesson Outcomes · for teachersCSTA 2
✦ CSTA 2-AP-10 · ISTE 1.5.c · Standards
🎯 I canmove sprites smoothly between positions using glide
🧩 New blocks1 block
📝 New words6 words
⏱ Lesson time~35 min
Teacher Guide

📋 Before class

⚠️ Common misconceptions

  • Students think glide and go-to are the same — go-to teleports instantly, glide animates the movement over time.
  • Students set duration to 0 and are confused that glide looks the same as go-to. Explain that 0 seconds = instant, which removes the animation.
  • Students expect glide to remember a path if they change X/Y mid-glide — glide always moves in a straight line to the target.

🎯 Differentiation

🐢 Struggling: Use only glide to [mouse-pointer] first so there are no numbers to manage. Then introduce X/Y coordinates after the concept is clear.

🚀 Advanced: Chain 5 or more glide blocks to trace a shape (triangle, star). Calculate the coordinates needed before building.

💡 During the lesson

  • Warm-UpDemo the difference before teaching. Set up two scripts side by side: one uses go-to and one uses glide. Click each and ask students to describe what they see. "Which one looks like an animation?" is the key question. This anchors the concept before vocabulary is introduced. Glide looks like animation because it is smooth 〰️ — it passes through every point with no jumps.
  • Try ItProject the stage while demonstrating glide. Students should see Pico physically moving across the screen. After glide-to-mouse-pointer, move the mouse while the script is NOT running, then run it — Pico goes where the mouse was when the block fired, not where it ends up.
    The second experiment shows that glide blocks queue — the second waits for the first. The third experiment surfaces a common misconception: without go to, Pico starts wherever it last was, not from center. Have students click the ▶ twice in a row for the third experiment to see the difference.
  • PlanThere is no decision step here — the glide block *blocks* the script. It pauses the loop until the glide finishes, then the loop flows straight back to the top on its own. Ask: "Do we need a separate wait block, or does glide already pause the script?" (Glide already waits — no extra wait needed, and no if is needed.) This is a key insight about blocking versus non-blocking blocks.
  • BuildAt step 5-6, students often drop pick random outside the oval instead of inside. Show the snap technique once for the group. At step 10, this is a preview of mouse-tracking interaction — a concept students will use in future chapters. Let them explore for 2 minutes without structure.