Pokémon style ledge jumps

Hi guys n gals,

I am trying to make some ledge jumps, pretty much exactly the same mechanics as Pokémon, and so far it works OK, but i'm having trouble with the corner squares.

Here is my current setup

Spoiler
upload_2018-2-4_15-30-10.png


upload_2018-2-4_15-52-14.png


upload_2018-2-4_15-52-51.png

My problem is that say I jump left off of Region ID 1 (Ledge Jump SW) by pressing the Left key, but then also press the Down key mid-jump (to start moving downwards when I land), my character will in fact jump in both directions. Once left and once down.

My question: Is there an OR argument I can use which will only action one of the IF commands, and not the other?

Hopefully this made sense... Let me know if you need me to include more info!

Thank you,
Ok I just needed to add this line and it works as it should now. :hwink: Thread can be closed

Spoiler
upload_2018-2-4_16-0-18.png

Original thread: https://forums.rpgmakerweb.com/threads/pokemon-style-ledge-jumps.90874/