{ }codelper

Learn with tiles › 38

Your second game

Make a game where you catch falling fruit.

1

Let's make your second game with broadcasts and clones. Baskets fall from the top, and Lara catches them.

In this step you put tiles on Basket. Basket makes a clone every second. As soon as a clone is born, it goes to a random place near the top. The original Basket stays at the top.

Make the clones fall down.

To do Make each clone keep falling down by 4.

Loading tiles…

2

Now clear away the clones that have fallen. There are two cases.

  • If a clone touches the bottom (the edge), it just disappears. This is already done.
  • If it touches Lara, it sends the broadcast caught and disappears. Make this one.

When Lara receives the broadcast caught, Lara raises the score. Press ▶ Run and move Lara with the → ← keys to catch them.

To do When a clone touches Lara, make it send the broadcast caught and disappear.

Loading tiles…

3

Last comes Lara. Lara moves with the keys.

When Basket sends the broadcast caught, Lara raises the score, shows it on the scoreboard, and plays a sound. It is the same as what you did in chapter 6, but you use "when I receive" instead of "when touching".

To do When the broadcast caught is received, increase score by 1, show it on the scoreboard with the name Score, and play the coin sound.

Loading tiles…

Go to the tile problems →