🧠Concept
Pick the right answer.
(x position) reporter block return?(y position) report?(direction) report when a sprite faces straight down?x_saved and y_saved?when flag clicked set [y_saved v] to (0) forever set [x_saved v] to (x position) end
👀Code Reading
Look at the blocks. Predict what happens.
when flag clicked set [myX v] to (x position) set [myY v] to (y position)
when flag clicked
forever
if <key (right arrow v) pressed?> then
change x by (5)
end
if <(x position) > (200)> then
set x to (0)
end
endwhen flag clicked point in direction (45) say (direction) for (2) secs
🐛Find the Bug
Something is broken. Pick the fix.
The sprite is supposed to say "Right side!" whenever it is in the right half of the stage (x > 0). Instead it says "Right side!" only while it is on the left half. What is wrong?
when flag clicked
forever
if <(x position) < (0)> then
say [Right side!] for (1) secs
end
end🛠️Build It
Pick a level. Build it. Check the boxes.
Say your x and y.
More
Create a sprite. When the flag is clicked, set two variables — myX and myY — to the sprite's current x and y positions, then have the sprite say both values for 2 seconds each.
Done when
The variables myX and myY are created and visible. Both update correctly when the sprite is in different starting positions. The sprite says the correct values.
Stop at the right wall.
More
Build a boundary alarm. In a forever loop, check the sprite's x position. If x is greater than 200, say "Too far right!" and set x to 200. If x is less than -200, say "Too far left!" and set x to -200. Use arrow keys to move the sprite so you can test the boundaries.
Done when
The sprite moves with arrow keys. The sprite cannot move past x: ±200. The correct message appears at each boundary. The sprite snaps back to the boundary x value.
Show direction and position live.
More
Build a direction display panel. 1) Show three variables: facing, posX, posY. 2) In a forever loop, set each one live from (direction), (x position), (y position). 3) Left/right arrows rotate the sprite; WASD keys move it. 4) Add a fourth variable facingLabel. Use an if/else chain on (direction) to set it: 90→"Right", -90→"Left", 0→"Up", 180→"Down". Skeleton: forever / set [facing ▾] to (direction) / if <(direction) = (90)> then / set [facingLabel ▾] to [Right] / end / end
Done when
All four variables update live. Movement and rotation controls work. facingLabel shows the correct word for each direction.
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️⃣Show your project.
- 2️⃣Point to a reporter block
(x position)and a command blockgo to x: () y: (). - 3️⃣Say what each one does.
Watch the student present, then check each thing they did.
Presentation Checklist
0 of 3 ticked
📤Submit
Send your results to your teacher and parent.
0 of 0 answered