SCRATCH GOLD II
SCRATCH GOLD I
2 of 3

8.07 Lots of balloons

Popping 1 balloon isn’t much of a game, so let’s add lots more!

One simple way to get lots of balloons is just to right-click on the balloon sprite and click duplicate. This is OK if you only want a few, but what if you need 20? or 100? Are you really going to click duplicate that many times?

A much better way of getting lots of balloons is to clone the balloon sprite.

Drag your balloon when flag clicked code to a new when I start as a clone control block.

balloon sprite

Add code to create 20 balloon clones to the when flag clicked code.

balloon sprite

You should also replace the hide block in the balloon-clicking script with a delete this clone block.

balloon sprite

Test your project! Now when the flag is clicked, your main balloon sprite will hide and then clone itself 20 times. When each of these 20 clones is started, they will each bounce around the screen randomly, just as they did before. See if you can pop the 20 balloons!

×
×

Cart