[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
109
S
27
G
276
Posts: 4,479
Reputation: 154,418

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
399
S
236
G
89
Posts: 24,519
Reputation: 195,351


Return to Construct 2 General

Who is online

Users browsing this forum: roracle, totoe and 3 guests