Hi! Welcome to the forum for Platinum Arts Sandbox Free 3D Game Maker. I currently have the forums locked as I am attempting to properly update them.

In the meantime please join the new Discord Server!

If you have any questions please e-mail me through the Platinum Arts website.

Exiting and ending the game without the menu?

Having issues not related to a specific Sandbox game mode? Get help here!
Please also read the rules for support when posting support requests.
Failure to comply with the forum rules may result in your topic being locked without resolution.
Locked
indianajordan
Member
Member
Posts: 4
Joined: April 11th, 2012, 8:18 pm
Name: Jordan

Exiting and ending the game without the menu?

Post by indianajordan »

I have my game as an excutable and I was wondering is there a way to end the game within itself. Like for example you get to the end of the game and sandbox just exits itself out. What I'm trying to say is, is there a way to get to the end of the game and make it quit itself and exit sandbox with out using the menu. Sort of like how in game maker you can make the game end itself and exit out.
chocolatepie33
Support Team
Support Team
Posts: 2458
Joined: April 27th, 2010, 5:31 pm
IRC Username: CP

Re: Exiting and ending the game without the menu?

Post by chocolatepie33 »

found in /data/menus.cfg

Code: Select all

	guibutton "No, don't quit" "cleargui 1"
		guistrut 20
		guibutton "Yes, exit Sandbox" "quit" exit
The "exit" should take you out of Sandbox. Use a code such as

Code: Select all

level_trigger_x = [ sleep 5000 ; exit ]
Julius wrote:Contribute to http://www.opengameart.org NOW!
Save the wiki!
Locked