How do I Close the Game with a sprite

Get help using Construct 2

Post » Sat Mar 08, 2014 2:36 pm

Hi,

I want to include a button closing the game (Exit Button). I the player push or touch the sprite (or button) a littl custom pupop should appeare like "Do you really want to close the game?" Yes or No.

Like it look default
Screenshot.png


Like i want to customize it
customized_close.png


So my questions are
  • How do i say the sprite it should open the custom close message
  • How do i say the OK sprite to close the game?

Is this possible at all? Thanks!
You do not have the required permissions to view the files attached to this post.
Image Image iTunes: Match3 | Google Play: Match3
B
93
S
32
G
30
Posts: 1,095
Reputation: 27,512

Post » Sat Mar 08, 2014 3:10 pm

Use another Layout where you make that Close message.
On Exit clicked-Go to layout "Close"
_______________________
On layout Close
-----
On OK clicked
-Browser Object-Exit.
I will not let you reach the sisters
Nature Forums
B
11
S
5
G
2
Posts: 496
Reputation: 2,306

Post » Sun Mar 16, 2014 8:22 pm

Thanks for your help. But i also want to override the standard close message. Is this possible?
Image Image iTunes: Match3 | Google Play: Match3
B
93
S
32
G
30
Posts: 1,095
Reputation: 27,512

Post » Sun Mar 16, 2014 8:46 pm

You can put a hidden object in close and no other in close and then create the event when the mouse click on these hidden objects.

Remember you will need to unite (Pin)
B
6
G
1
Posts: 15
Reputation: 405

Post » Mon Mar 17, 2014 1:51 pm

Hi,
Thanks for your respone, but i don't understand what you mean?
Image Image iTunes: Match3 | Google Play: Match3
B
93
S
32
G
30
Posts: 1,095
Reputation: 27,512


Return to How do I....?

Who is online

Users browsing this forum: Baidu [Spider], marc254 and 5 guests