[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
100
S
23
G
197
Posts: 4,216
Reputation: 113,922

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
367
S
217
G
82
Posts: 23,262
Reputation: 183,689


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 2 guests