- Learnt27 min · a row of targets, breaking them, and what it costs
- Basic25 min · build the wall
- Challenge 1–327 min · your wall, uneven prizes, a hard last target
- Extrabonus · a target that takes two hits
Review — where we got to 5 min
You can lose the game, and the score counts bounces. Now you aim the bounces.
- The floor takes a life. The serve sends the ball back down.
- Clones:
create clone of [myself v]andwhen I start as a clone, from Jump Dash.
Quick-fire
Six targets in a row. How many sprites is that?
Reveal the answer
One. A loop makes six clones of one sprite. Six dragged copies work too. But then you must change all six every time you change your mind.
Today’s Topic 3 min
- Building a row of clones with a repeat and a change x.
- A clone that waits to be hit, then deletes itself.
- Why the ball and the target each do their own job.
- A game that gets harder every time you win.
Learning outcome
By the end of this lesson you will be able to:
- Lay out a row of clones with one loop.
- Make a clone disappear when the ball reaches it, and give points for it.
- Make the game harder as the player wins. You will not change the ball’s loop.
Learnt — a row, a break, and a cost 27 min
1 · A row that builds itself
We make six targets from one sprite. They are spaced the same. The loop makes a clone, steps sideways, and does it again.
- Add the Crystal sprite. Set its size to
80. - On the flag:
hide, thengo to x: (-175) y: (130). - Add
repeat (6). - Inside it:
create clone of [myself v]thenchange x by (70). - Give the clone stack one job for now:
show. - Press the flag and count them.
when flag clicked
hide
set size to (80) %
go to x: (-175) y: (130)
repeat (6)
create clone of [myself v]
change x by (70)
end
How to use this: Click the green flag and count the crystals. Six clones, laid out by one loop — nothing to press.
2 · Breaking one
The target waits to be touched. It gives points, then deletes itself. The ball never knows which one it hit. It does not need to.
- In the clone stack, after
show, addwait until <touching [Ball v]?>. - Then add a sound, ten points, and a delete.
- On the ball, inside its loop, add
if <touching [Crystal v]?> then. - Inside that:
point in direction (pick random (135) to (225))andmove (12) steps. - Play. Break all six.
when I start as a clone
show
wait until <touching [Ball v]?>
start sound [Glass Breaking v]
change [score v] by (10)
delete this clone
How to use this: Click the green flag, click the stage once, then hold ← or → to aim the ball upward and clear the row.
3 · Harder every time you win
A row that gets easier as it empties is a dull game. Every break should cost you something.
- Make a variable called
speedand set it to6on the flag. - Put it in the ball’s
move ( ) steps. - On the target’s clone stack, before the delete, add
change [speed v] by (0.5). - Add a second line there:
broadcast [shrink v]. - On the paddle, receive it and
change size by (-6). - Play a whole row. Feel how hard the last two are.
when I receive [shrink v]
change size by (-6)
How to use this: Click the green flag, click the stage once, then hold ← or →. Watch the paddle shrink and the speed climb every time a crystal breaks.
Basic — build the wall 25 min
Open last week’s game. Build the row before you change the ball.
Step 1 — the row
- Add the target sprite and hide the original.
- Build the repeat that lays out the clones.
- Count them on screen. You need six, spaced the same, all on the Stage.
Step 2 — breaking
- Add the wait until and the points to the clone stack.
- Play. Steer the ball into a target.
- Check the score goes up by ten, no more.
Step 3 — the bounce
- Add the touching question to the ball.
- Send it back down and move it clear.
- Check it never breaks two targets in one go by mistake.
Step 4 — the cost
- Put the speed variable in the ball’s move block.
- Raise it on every break.
- Add the shrink broadcast. Add the paddle’s reply.
Step 5 — reset properly
- On the flag, set the paddle back to
100%. Set the speed back to 6. - Play three games in a row. Check the second starts like the first.
The paddle stays tiny in the next game.
set size to (100) % is missing from the paddle’s flag stack. Change size never goes back by itself.
All six targets vanish at once.
The wait until is on the flag stack, not the clone stack. So the original answered for all of them.
The ball goes straight through the targets.
The ball has no touching block of its own. A target deleting itself is not a bounce.
The ball gets stuck in the row.
The move after the bounce is too small to clear the next crystal. Twelve is most often enough. Check the spacing.
Your own wall
One straight row is the simplest shape. Build a better one.
- A shape that is not a single straight line.
- A ball off the paddle can reach every target.
- No target sits half off the Stage.
Not every target is worth ten
A target in the middle is easy. One in a corner takes skill. Give them different points.
- At least two kinds of target. You can tell them apart at a glance.
- The harder one gives more points.
- A player can tell which is which without being told.
Teacher note — colour is the cheapest signal
The Crystal sprite has two costumes, and a different costume on the corner clones says “different” without a word of text. Pupils reach for labels first; nudge them towards colour and size.
Winnable, but only just
Change your game so you can clear the whole wall, but not often. Change one number at a time, and play a lot.
- You have cleared the wall at least once.
- You have failed to clear it at least three times.
- You can name the numbers you changed. You can say what each one did.
Teacher note — three dials, one at a time
Speed, shrink and the number of targets are the three dials. A pupil who moves all three at once will spend the lesson going in circles. Write the three numbers on the board and change one per playtest.
A target that takes two hits
The first hit cracks it. The second breaks it. How does a clone remember which hit it is on?
How to use this: Click the green flag, click the stage once, then hold ← or →. Every crystal cracks on the first hit and breaks on the second.
- The first hit changes how the target looks. It gives no points.
- The second hit breaks it and gives double points.
- One pass of the ball can never count as two hits.
- Each clone remembers its own hits. Hitting one does not crack the others.
Teacher notes — where a clone keeps its memory
Level 1 has no variable that belongs to one clone, so the clone’s own place in its script is the memory. Two waits in a row do it: wait to be touched, change costume, then wait to be touched again. A clone sitting at the second wait has been hit once, and nothing had to remember that on its behalf.
The line between them is the one pupils miss: wait until <not <touching [Ball v]?>>. Without it the ball is still touching on the next frame and the target breaks in the same pass.
Going further: next lesson the wall comes back a second time, harder, and the game gets a front door of its own.
Summary 4 min
Now the rally has a goal. Every point makes the next one harder.
- A repeat with a change x in it lays out a whole row of clones.
- A clone waits to be touched, gives points, and deletes itself.
- The ball asks about the sprite, not about one clone.
- A game that gets harder when the player wins stays fair and fun.
- Target
- A clone that waits to be hit, gives points, and deletes itself.
- Row
- Clones put in place by a loop. Nobody drags them.
- wait until
- Stops a script until something becomes true.
- Difficulty curve
- How much harder a game gets as the player does well.
Next lesson: a second wall, a win screen, and a front door for the whole game.