This all works, but it's not much of a game.
We'll change it so you've only got 20 seconds to catch as many melons as you can. Again, there's many ways you could approach this. Here's one technique:
- Make a variable called "Time Remaining"
- Make a new sprite which is just the words "Game Over"
- Add some script to hide the sprite and set Time Remaining to 20 at the start
- Every second, reduce Time Remaining by 1
- When Time Remaining gets to zero, display the sprite and stop all the scripts
Now we have a proper game with a goal