How do you make a Game Over screen?

Started by Cine Beast, Mon 15/08/2011 02:47:25

Previous topic - Next topic

Cine Beast

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.

Calin Leafshade

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.

Babar

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.
The ultimate Professional Amateur

Now, with his very own game: Alien Time Zone

Cine Beast

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.

Khris

Depth is changed using the z-index.

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


To get the mouse pointer, use

Code: ags
  mouse.Mode = eModePointer;


Why isn't this in Beginner's Technical Questions?

Cine Beast

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.

Dualnames

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.
Worked on Strangeland, Primordia, Hob's Barrow, The Cat Lady, Mage's Initiation, Until I Have You, Downfall, Hunie Pop, and every game in the Wadjet Eye Games catalogue (porting)

SMF spam blocked by CleanTalk