O'Reilly logo

GameMaker Cookbook by Brandon Gardiner

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding a game over screen

How do you know when you've lost the game you're playing? Well, if you're playing the game we've been creating in this chapter, you will know this because it resets itself. Not very appealing from a player's standpoint, right? Most games will show you a game over screen that will, at the very least, tell you that your gameplay session has finished. Let's take a look at creating a game over screen and what information we can convey to the player.

Getting ready

We're going to finish our game with a game over screen, so make sure that the project file is open. You'll need a few things before we begin, so let's take a look at the list. First, you'll need a new room called rm_gameOver. You'll also need a controller object called ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required