How to run a subevent while main event is running

How do I…

Make a subevent run while main event is running

What is the expected result

Similar to Mario and Luigi series make a double jump happen if canhop

What is the actual result

The event does run at all and I am skeptical of the Trigger Once Condition but removing it brings up the same results

Related screenshots

As far as I know, “making a sub-event run while the main event is still running” is not possible in GDevelop.

A sub-event will only execute when:

  • The conditions of the parent event are true.
  • The actions of the parent event have been fully processed.

Since sub-events are executed after their parent event completes, they cannot run in parallel with it.

In your case, the sub-event won’t execute because the last boolean variable, canhop, is set to false, while your sub-event condition requires it to be true.

tysm do you know a way I can do this without subevents?

There is already an “Allow Jumping Again” action that achieves exactly what you’re asking for, a double jump, much like in many popular games. Additionally, there’s a counterpart action, which blocks the jump-again functionality. I believe these two actions could be really helpful for you and would save you both time and effort.

image
image

Sorry for not responding in timely manner but I have already solved this. I had to get creative and split the function. I am not using a platformer so this will not work the way you told me.

1 Like