Challenge 4: Game Over

When you pop all the bloons, why not display a Game Over message?

This is easiest if you switch to a level with the Game Over message all alone. It's neater than keeping the game running in the background. You can switch levels using control flow blocks.

You will need to count the number of bloons left in the game. To do this, you will need to tag the bloons when they are created, then check how many of that tag are currently in the scene every frame using a length of list operator block.

Do the counting in the right place! If you put it on a bloon, all the bloons will run it, and get confused. We suggest you put it on the big spiky ball, which will always be in your scene, and will always be alone.

Play Again

Add a script to your "Game Over" screen, allowing the player to restart the level.

Challenge of Challenges

Design a level with many bloons, but only one special bloon. If the player pops the special bloon, they win! If they pop another bloon, they lose.

To make it fair, the big spiky ball should only start moving once the player clicks on the game. Otherwise, the game might load a dangerous bloon under the cursor, and the player would lose the moment they began.

You will need to be smart to get this working. Get ready to do a lot of work.

You will need to be generous to keep players happy! Make it easy to see what they need to do. Make the special bloon look special, and make it obvious what path the player needs to travel.

results matching ""

    No results matching ""