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 ?
http://www.agsforums.com/yabb/index.php?board=6;action=display;threadid=6268;start=msg76159#msg76159
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'm adding this into the Beginners' FAQ if it isn't in there already.
To end the game in he point you want just put QuitGame(0); That will quit the game without asking from the player.
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.
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 :)
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!