Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: deedee on Mon 23/02/2004 00:38:13

Title: "Quit" won't work
Post by: deedee on Mon 23/02/2004 00:38:13
Here´s the script lines i wrote:

if (button == 1)   // quit
     QuitGame(0);

Button number is ok, i can't figure out what's wrong.
When i click the button in the test game; it just closes all GUIs, but doesn't exit the game.

any ideas?
Title: Re:"Quit" won't work
Post by: Darth Mandarb on Mon 23/02/2004 00:42:28
try QuitGame(1);

and if that doesn't work, make sure the button (in the GUI editor) is set to 'Run Script'

~ d
Title: Re:"Quit" won't work
Post by: deedee on Mon 23/02/2004 01:43:52
Nope. Still the same... and i've checked the buttons and they are correctly set...
Title: Re:"Quit" won't work
Post by: Darth Mandarb on Mon 23/02/2004 05:03:32
Please then post the full script for that GUI.  It must be some missing syntax or something.

~ d