do a modal popup dialog box?

Get help using Construct 2

Post » Fri Aug 31, 2012 9:42 pm

If I want to do a popup with for example some text, and ok button and cancel button, is there a way to do this?

I dont want to switch to another layout as it will delete all the current layouts objects.

I experimented with bringing hidden sprites to the top, but the games buttons etc. underneath are all still clickable, even if I make them invisible and put them to the bottom layer.

I searched the forums and the howto FAQ

Any Ideas?

I imaging most games will need this at some point, e.g. asking if you are sure you want to start again.
B
15
S
5
G
2
Posts: 357
Reputation: 3,691

Post » Sat Sep 01, 2012 12:23 pm

Hello,
See this post:

http://www.scirra.com/forum/custom-window-Alert_topic55407.html
B
6
Posts: 19
Reputation: 713

Post » Sat Sep 01, 2012 3:35 pm

Thanks for the link. Looks like modal dialogs are not possible with construct 2 as I feared. Its not possible to block events to the layers below.
B
15
S
5
G
2
Posts: 357
Reputation: 3,691

Post » Sat Sep 01, 2012 10:08 pm

@nutmix : the solution : put your dialog on top layer, and make that layer invisible. Put all the logic of the bottom layer in a Group. When you display the top layer, deactivate the bottom Group. When you hide the top layer, you can activate the logic of the bottom Group.
B
33
S
9
G
6
Posts: 709
Reputation: 6,704


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 23 guests