Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: =The=Brat= on Sat 11/06/2005 08:47:37

Title: Quit Button
Post by: =The=Brat= on Sat 11/06/2005 08:47:37
I am Making a RON game using this intro screen

(http://www.2dadventure.com/ags/2232.png)

It is from SteveMcCrea's III Spy. I have made all the buttons hotspots and make them do their jobs but i cant find a interaction in the interaction editor to quit the game. any help or do i need to use scripting for that one?
Title: Re: Quit Button
Post by: PsychicHeart on Sat 11/06/2005 10:24:47
okay, first, RTFM nOOb! Secondly, here is the scripting. Just go to "Interaction" for an object, go to Run Script and then type the following source code.

QuitGame (1);

it truly is that simple my friend.
Title: Re: Quit Button
Post by: Ubel on Sat 11/06/2005 10:43:36
If you want to quit the game straight without the Quit Game dialog, then use QuitGame (0);

Also, just ignore Flukeblake for calling you a noob. He's apparently one himself.