Creating a game over message
In its current state, our game is simply displaying a temporary scene when the player has no more lives left. Our next polishing task is to create a routine that will advise the player when the game is over and offer the appropriate options to the player.
The message will consist of a Game Over banner and two option buttons: one to allow the player to return to the game's main menu scene, and the other to allow the player to immediately restart the game. When completed, the Game Over banner will be presented to the player as shown in the following screenshot:
Let's jump right in and build the instructions to create the Game Over banner.
STOP!
Haven't we already created a very similar information banner? Our game over banner is almost identical to the success banner that we created in the previous section, Improving the level progression routine, so this is a great opportunity to save ourselves some work!
Reusing the existing banner event
We have two options available...