How do I make a button that when clicked closes the game?

Get help using Construct 2

Post » Mon Jul 20, 2015 1:22 pm

I am looking for a way to close the game once the player has clicked the exit button also I am looking for a way to make a menu appear, which has the sound options in it so the user can change them, on the click of a button too.

Fyi when I say button I mean an object.
B
5
Posts: 25
Reputation: 277

Post » Mon Jul 20, 2015 1:27 pm

maybe on sprite click -> browser.close
Image Image
B
22
S
13
G
130
Posts: 869
Reputation: 67,816

Post » Mon Jul 20, 2015 1:42 pm

Where do I put that? Like which action do I select for that?
B
5
Posts: 25
Reputation: 277

Post » Mon Jul 20, 2015 1:50 pm

add browser plugin
add mouse object
add the following event on your eventsheet:
event mouse: on left click on object sprite "your sprite" -->>> action browser choose close

That should close the window
Image Image
B
22
S
13
G
130
Posts: 869
Reputation: 67,816

Post » Mon Jul 20, 2015 1:54 pm

Thank you, now what about the sound menus?
B
5
Posts: 25
Reputation: 277


Return to How do I....?

Who is online

Users browsing this forum: ivanski1983 and 4 guests