🧠Concept

Pick the right answer.

Concept · Q1
In the jump-and-fall loop, what does the vel_y number tell you?
Concept · Q2
Each loop, the code takes 1 away from vel_y. What happens to the sprite over many loops if nothing stops this loop?
Concept · Q3
Why does the jump check sit inside the ground check?
Concept · Q4
This loop has no cap on the fall speed. After many loops vel_y is a big minus number. What bug can this cause?
forever
  change [vel_y v] by (-1)
  change y by (vel_y)
  if <touching color [#8B4513]?> then
    set [vel_y v] to (0)
    set y to (-120)
  end
end

👀Code Reading

Look at the blocks. Predict what happens.

Code Reading · CR1
What is the value of vel_y after this sequence runs once (assume vel_y starts at 0)?
set [vel_y v] to (0)
change [vel_y v] by (-1)
change y by (vel_y)
Code Reading · CR2
What is wrong with this jump script?
when flag clicked
forever
  if <key [space v] pressed?> then
    set [vel_y v] to (12)
  end
  change [vel_y v] by (-1)
  change y by (vel_y)
end
Code Reading · CR3
This landing script runs inside a forever loop (the same move-to-floor step from the lesson). What does it do when the sprite touches the ground color?
if <touching color [#8B4513]?> then
  set [vel_y v] to (0)
  set y to (-120)
end

🐛Find the Bug

Something is broken. Pick the fix.

This script should cap the fall speed so the sprite does not skip past thin platforms, but the sprite still falls through them. What is the fix?

when flag clicked
set [vel_y v] to (0)
forever
  change [vel_y v] by (-1)
  change y by (vel_y)
  if <touching color [#8B4513]?> then
    set [vel_y v] to (0)
    set y to (-120)
  end
end

🛠️Build It

Pick a level. Build it. Check the boxes.

🧑‍🏫
For the teacher

Review the student's project, then check each thing they did.

Project Evaluation

0 of 4 ticked

💬Talk About It

Present your project to your teacher or a classmate.

  1. 1️⃣Show your jumping sprite.
  2. 2️⃣Point to the vel_y variable.
  3. 3️⃣Make it jump, say what makes vel_y go down, and say why the fall speed has a cap.
🧑‍🏫
For the teacher

Watch the student present, then check each thing they did.

Presentation Checklist

0 of 4 ticked

📤Submit

Send your results to your teacher and parent.

0 of 0 answered