[FEATURE REQUEST] modal dialogs

Discussion and feedback on Construct 2

Post » Sat Sep 01, 2012 3:45 pm

The ability to have simple popups like "are you sure [YES] [NO]" or "Lost connection to the server [OK]" would be a huge help. Every game I have created needs these, and its not easy to create them as events go through layers.

If its not feasible to create a popup window type function, then at least the ability to block events past a layer would do - then one could consturct ones own modal dialogs.

A games input logic is usually complex and hard to read with nested Ifs etc, I dont think its tennable to add more state to try and ignore input by hand if we are simulating a modal dialog. So currenty I suspect some of use developers don't offer the player choice or warnings when perhaps we should.nutmix2012-09-01 15:46:22
B
15
S
5
G
2
Posts: 357
Reputation: 3,691

Post » Sun Sep 02, 2012 5:46 pm

I don't think we need to add any new features to do this. Can't you just set the timescale to 0, disable the main event groups, then make a dialog layer visible?
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Thu Sep 06, 2012 11:48 am

I had my input for various states and layouts spread over several event sheets to keep things organised. I have rewritten the project to fit in with this - i.e. all input in as few sheets as possible, then disabling the various appropriate groups.

The ability to disable touch & click input on sprites and/or layers would be very very useful in a number of cases in my games at least. Button sprites that you cant disable are difficult to manage, and require a number of globals which are generally not good practice
B
15
S
5
G
2
Posts: 357
Reputation: 3,691

Post » Thu Sep 06, 2012 12:41 pm

I disagree about using globals here.
In fact this is the perfect place for them.
Just think ahead, and use one global to rule them all.
Image Image
B
161
S
48
G
90
Posts: 7,356
Reputation: 66,767

Post » Thu Sep 06, 2012 12:44 pm

@nutmix - disabling the group of events that handles input is a really easy way to do that.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600


Return to Construct 2 General

Who is online

Users browsing this forum: edisone, heatoneGR, iyenal222, pablo7 and 14 guests