[Suggestion] Wait action to wait a signal

0 favourites
  • 2 posts
From the Asset Store
11 loops of RPG, chiptune/8-bit music. Suitable for any pixel art game.
  • As we know, system action: wait could hang the execution until time-out. For example:

    + start of layout
    	[li]append text to "1"[/li]
    	[li]wait 1 sec[/li]
    	[li]append text to "2"

    It might be useful to add another kind of wait action, to hang the execution until notified by other event. For example:

    + start of layout
    	[li]append text to "1"[/li]
    	[li]system: wait "enter" signal[/li]
    	[li]append text to "2"[/li]
    + keyboard: on "enter" press
    	[li]system: emit "enter" signal

    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.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • It's a good idea. I'll add it to the infamous todo list.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)