Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Thu 21/08/2003 16:52:39

Title: How to Kill a Player ?
Post by: on Thu 21/08/2003 16:52:39
This may be a big duh ... but I can't find the info anywhere in beginners help or tutorials.  How do I "kill" my player when s/he screws up ?  I want to explain why they died and offer the options to quit/restart/restore.

In a related question - how do I end my game when the player wins ?
Title: Re:How to Kill a Player ?
Post by: Scummbuddy on Thu 21/08/2003 17:14:22
http://www.agsforums.com/yabb/index.php?board=6;action=display;threadid=6268;start=msg76159#msg76159
Title: Re:How to Kill a Player ?
Post by: on Thu 21/08/2003 18:07:45
Thanks for the info.  I was trying to look up "Kill", not die, so I didn't find anything.

Presumably, winning the game could be accomplished in a similar manner - only with a friendlier room  :)

JPC
Title: Re:How to Kill a Player ?
Post by: TerranRich on Fri 22/08/2003 03:48:45
I'm adding this into the Beginners' FAQ if it isn't in there already.
Title: Re:How to Kill a Player ?
Post by: Ishmael on Fri 22/08/2003 05:01:16
To end the game in he point you want just put QuitGame(0); That will quit the game without asking from the player.
Title: Re:How to Kill a Player ?
Post by: jannar85 on Sat 23/08/2003 11:36:06
Quote from: justplaincarol on Thu 21/08/2003 18:07:45
Thanks for the info.  I was trying to look up "Kill", not die, so I didn't find anything.

Presumably, winning the game could be accomplished in a similar manner - only with a friendlier room  :)

JPC
I feel this hasn't been answered yet. Do an animation of the character being killed, OR make a pop-up appear which tells us that the character has been killed. Then finish the whole thing with a QuitGame(0); - Which will quit the game without any dialogboxes.
Title: Re:How to Kill a Player ?
Post by: TerranRich on Sun 24/08/2003 00:37:54
It's in the FAQ already. Also, what if the player wants to restore a game or restart? Does he need to open up the game again, go through whatever intro there is, and restore? My idea is better :)
Title: Re:How to Kill a Player ?
Post by: Monk on Sat 06/09/2003 13:38:15
hmmm i think you should create an animation for the character.. and then the caracter visualization must be turned off and you may start with the new character or end the game!  ???

damn!