Learn with tiles › 25
Ending and restarting
Tell the player if they won, and let them start again in the middle of a game.
1
When the time is up, tell the player if they won or lost.
After counting all the time, ask about the score before stopping. If the score is greater than 0, that is, if Lara caught at least one, she has won.
To do If the score is greater than 0, say I won! and play the win sound. Else, say Too bad! and play the lose sound.
Loading tiles…
2
The Scene: restart tile starts the game again from the beginning. The score and the positions go back to the start too.
Make the game restart when you press the space key.
After "stop all", event tiles stop too. So you can use this key while the game is running. After the game is over, press ▶ Run again.
To do When the space key is pressed, restart from the beginning.
Loading tiles…