🧠Concept
Pick the right answer.
speedx and speedy are For this sprite only. Where should each spark pick its own random speed?delete this clone is at the END of the clone script. What if you remove it?👀Code Reading
Look at the blocks. Predict what happens.
speedx and speedy were made For all sprites. What is wrong with this spark maker?when flag clicked repeat (20) set [speedx v] to (pick random (-5) to (5)) set [speedy v] to (pick random (-5) to (5)) create clone of [myself v] end
when I start as a clone set [life v] to (30) set [speedx v] to (pick random (-4) to (4)) set [speedy v] to (pick random (-8) to (-1)) repeat until <(life) = (0)> change x by (speedx) change y by (speedy) change [speedy v] by (-0.5) change [ghost v] effect by (3) change [life v] by (-1) end delete this clone
when flag clicked set [speedx v] to (0) set [speedy v] to (0) repeat (10) create clone of [myself v] end
🐛Find the Bug
Something is broken. Pick the fix.
This should send 15 sparks different ways. speedx and speedy were made For all sprites. Every spark moves the same way. What is the bug?
when flag clicked repeat (15) set [speedx v] to (pick random (-6) to (6)) set [speedy v] to (pick random (2) to (8)) create clone of [myself v] end
when I start as a clone set [life v] to (30) repeat until <(life) = (0)> change x by (speedx) change y by (speedy) change [life v] by (-1) end delete this clone
🛠️Build It
Pick a level. Build it. Check the boxes.
Ten sparks fly in different ways.
More
Build a simple spark burst. When the flag is clicked, make 10 clones. Make speedx and speedy For this sprite only. Each clone sets its own speedx (−5 to 5) and speedy (1 to 6) as the first action in when I start as a clone. Each clone moves by speedx/speedy each frame and disappears after 30 frames.
Done when
Speed is set inside when I start as a clone, not in the maker. All 10 sparks fly different ways. Clones disappear after 30 frames.
Sparks fall and fade like a fountain.
More
Build a falling fountain. Add a drop: change speedy by −0.4 each frame. Add a ghost effect that grows by 3 each frame so sparks fade out. Add a hold-down maker that makes 3 new sparks every 5 frames while the flag runs.
Done when
Sparks curve down as they fall. The ghost effect fades each spark to see-through before it disappears. The hold-down maker runs without freezing the project.
A firework bursts when you press space.
More
Build a firework show. 1) A flag script with a forever loop waits for the space key, then makes 30 clones. Do not use when space key pressed: clones run that script too, so every spark would burst. 2) Each clone sets its OWN speedx and speedy FIRST inside when I start as a clone. 3) Each frame: change x by speedx, change y by speedy. 4) Fade with the ghost effect; disappear after 40 frames. 5) A second spacebar press fires a new burst at the same time. Speed start: when I start as a clone | set [speedx ▾] to (pick random (-8) to (8)) | set [speedy ▾] to (pick random (-8) to (8))
Done when
Each clone sets its own speedx/speedy inside when I start as a clone, so the burst spreads many ways. Many bursts run at the same time. No sparks stay after life reaches 0.
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 firework project to your teacher.
- 2️⃣Click the
.
- 3️⃣Point to the
when I start as a clonescript and say "each clone sets its own speed here."
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