[Suggestion] Wait action to wait a signal

Discussion and feedback on Construct 2

Post » Mon Apr 22, 2013 6:20 am

As we know, system action: wait could hang the execution until time-out. For example:
[code]+ start of layout
- append text to "1"
- wait 1 sec
- append text to "2"[/code]

It might be useful to add another kind of wait action, to hang the execution until notified by other event. For example:
[code]+ start of layout
- append text to "1"
- system: wait "enter" signal
- append text to "2"

+ keyboard: on "enter" press
- system: emit "enter" signal[/code]
The execution at '+ start of layout' will be hanged by '- system: wait "enter" signal', until '- system: emit "enter" signal' executed under '+ keyboard: on "enter" press' event.

I know this feature could be implemented by splitting actions into many parts, controlled by fsm under '+ keyboard: on "enter" press'. But a wait signal could help designer describe actions sequence more straightforward and readable.rexrainbow2013-04-22 17:24:08
B
97
S
22
G
177
Posts: 4,111
Reputation: 103,525

Post » Mon Apr 22, 2013 2:15 pm

It's a good idea. I'll add it to the infamous todo list.
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,544


Return to Construct 2 General

Who is online

Users browsing this forum: blackant, Ethan, TD Bauer and 11 guests