Pokémon style ledge jumps

Karlski

Villager
Member
Joined
Dec 2, 2016
Messages
26
Reaction score
14
First Language
English
Primarily Uses
N/A
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

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,
 

Attachments

Last edited:

Karlski

Villager
Member
Joined
Dec 2, 2016
Messages
26
Reaction score
14
First Language
English
Primarily Uses
N/A
Ok I just needed to add this line and it works as it should now. :hwink: Thread can be closed

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

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

We are truly intellectuals.
Without using violence without weapons
Our group has as many as 1.3 million people and more than 1 hundred thousand talks.
We gathered in an hour, more than 4.5 Half a hundred thousand



I got a Sword.
I got an Axe.
I got two Swords.
Nothing to see here, just walking with my dog.
I haven’t worked on my game in a while. Tomorrow might be the day.
*squeals* :kaoblush:


I've been experimenting with improved memory management again, which allowed me to include items to increase player path length. These are both 44 grid spaces long, and stable. :LZSexcite:
I FINALLY DID IT! 5 years making my very first game and I just officially released it on STEAM..... OMG..... I can say I finished a game! The feelings!!!!!

Forum statistics

Threads
104,462
Messages
1,006,471
Members
135,971
Latest member
Akasheee
Top