Exiting App

Get help using Construct 2

Post » Mon Jul 08, 2013 3:28 pm

I have a main menu with an exit game button. What code should I use to exit the game? Thanks for your help.
B
9
S
1
Posts: 8
Reputation: 1,043

Post » Mon Jul 08, 2013 3:34 pm

@ghoffman1982,

If you add the 'Browser' object to your project, you can use the objects 'close' action to close the app.

Good luck :)
B
33
S
6
G
7
Posts: 494
Reputation: 8,252

Post » Mon Jul 08, 2013 4:41 pm

If you're considering exporting for desktop (Node-Webkit), I'd suggest that you use the JavaScript command "window.close();" instead (also part of the browser object). The browser close action has a known issue with Node-Webkit projects on Windows 8 and sometimes Win 7.
B
57
S
15
G
11
Posts: 912
Reputation: 12,581

Post » Sun Jul 21, 2013 9:15 pm

Where would I enter that command and what is the correct syntax?

Thanks for your help.
B
9
S
1
Posts: 8
Reputation: 1,043


Return to How do I....?

Who is online

Users browsing this forum: KazaaMafia, Kenthria, QuantumMMX and 10 guests