SCRATCH GOLD II
SCRATCH GOLD I
2 of 3

3.08 Add a timer

Now you’re going to add a timer so that the player only has ten seconds to catch as many ghosts as possible.

Create a new variable called ‘time’.

Can you add a timer to your Stage to give your player only 10 seconds to catch ghosts?

Your timer should:

  • Start at 10 seconds
  • Count down every second

The game should stop when the timer gets to 0.

Ask a friend to test your game. How many points can they score?

If your game is too easy, you can:

  • Give the player less time
  • Make the ghosts appear less often
  • Make the ghosts smaller

Change and test your game a few times until you’re happy with its level of difficulty.

×
×

Cart