Adventure Game Studio

Community => General Discussion => Topic started by: Cine Beast on Mon 15/08/2011 02:47:25

Title: How do you make a Game Over screen?
Post by: Cine Beast on Mon 15/08/2011 02:47:25
Hey, I'm new to AGS, but I'm making good progress (err, at least I think so). I've read/watched the tutorials, but as of yet I haven't seen any suggestions on how to make a death screen. I would prefer a Sierra style screen.

Example:

You're playing King's Quest and walk King Graham off of a ledge. He plummets to his death, and you get a game over: there's a picture, a pun-filled description, and the option to quit, restore, or restart.

How would I go about making something like this?  ???

Thanks in advance.
Title: Re: How do you make a Game Over screen?
Post by: Calin Leafshade on Mon 15/08/2011 02:54:21
Just use a room like any other but with your game over message on the background.

Then just change to that room when you want to show the game over screen.
Title: Re: How do you make a Game Over screen?
Post by: Babar on Mon 15/08/2011 06:56:56
Actually, if I remember right, the King's Quests with Graham (both the 1s, 2, and 5) didn't have it as a separate background, but rather as a GUI on the background where you died.

In this case, you'd have to create a new death GUI, put a label for the title, put a label for the text to show when the player dies, and put an image (which you can then change the slot of, depending on the death). Aside from that, you'd have to add Restore, Restart and Quit buttons.
Title: Re: How do you make a Game Over screen?
Post by: Cine Beast on Mon 15/08/2011 17:15:23
Okay, I'm trying to make a GUI death screen, but it's incomplete:

The GUI pops up in the center of the screen, and it has text, a pic, and mostly-working buttons. However, I'm unsure how to change the cursor to the Pointer style when this happens.

A worse problem is that when I press the Restore button, the Restore screen loads, but beneath the Game Over GUI, so I cannot read it or effectively use it. Is there some way I could make the GO GUI invisible (while the Restore screen is up), or change its depth?

I'm getting there; thanks.
Title: Re: How do you make a Game Over screen?
Post by: Khris on Mon 15/08/2011 17:22:01
Depth is changed using the z-index.

You might want to turn off the GUI after a click first anyway though.
Just call
  gDeathGUI.Visible = false;

To get the mouse pointer, use

  mouse.Mode = eModePointer;

Why isn't this in Beginner's Technical Questions?
Title: Re: How do you make a Game Over screen?
Post by: Cine Beast on Mon 15/08/2011 18:22:17
Sorry, I suppose I didn't figure this would require so many technical questions.  :-[

Thanks for the help, though. I should be set for now. The next time I have an issue, I'll post it in TQ.
Title: Re: How do you make a Game Over screen?
Post by: Dualnames on Mon 15/08/2011 19:50:15
This being a beginner's question, should be posted there. Ideally I suggest searching the forums, cause this has been asked a great deal of times.