Today you will build a falling-objects catcher game using clones โ copies of a sprite created while the game runs โ and store your high scores in a list.
The falling object sprite disappears when the flag is clicked. Only the catcher remains visible. This is intentional โ the original sprite is now an invisible spawner that creates clones.
Your falling object sprite's flag-clicked script should be:
when ๐ฉ clicked
hide
forever
create clone of [myself]
wait 1 second
end
Every second, a new copy of your sprite appears at the top of the stage at a random x position and falls downward. When it reaches the bottom it disappears.
When a falling object touches the catcher, it disappears and the score increases. Objects that are not caught fall off the bottom and also disappear (from the repeat-until loop).
An empty list box appears on the stage next to the score display. The palette now has orange-red list blocks: "add to", "delete", "item of", "length of".
You have built a full catcher game with clones, and saved scores to a list. Next week โ the final lesson โ you will add proper game screens and a persisting cloud high score.