Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: maniactcs on Tue 21/02/2012 13:46:21

Title: Ending a game
Post by: maniactcs on Tue 21/02/2012 13:46:21
Hi

I have come to the end of my short demo for my project at university and was wondering if there was a script command to end the game and ext back to windows?

Thanks

Title: Re: Ending a game
Post by: Gudforby on Tue 21/02/2012 13:53:02

QuitGame(0);


will exit the game and return to windows
Title: Re: Ending a game
Post by: steptoe on Tue 21/02/2012 13:55:27

QuitGame(0);     // will exit program (ags) back to windows immediately
QuitGame(1);     // will ask you if you want to Quit program (ags)




Title: Re: Ending a game
Post by: maniactcs on Tue 21/02/2012 14:39:33
Thank you for the quick replies !!! :)
Title: Re: Ending a game
Post by: Khris on Tue 21/02/2012 15:22:31
Please check the manual before opening threads. This is command is really easy to find.