Trigger same action with two different events ("or" clause?)


#1

Hi! I am new to gdevelop.
I was wondering how can I make an “or” from traditional programming? For instance, I need to trigger the same action either if the key ‘up’ is pressed, or the key ‘w’ is pressed.
Thanks a lot!


#2

Use two events. Different conditions, same action. That’s what I’d do.


#3

There is actually an “Or” condition in GDevelop under “Advanced” category.
After adding the condition, you can add sub conditions for it and when any of them is true, the condition returns true.