Jumping

Hey I've made this whole platformer game where you can move around and jump and do everything. The only thing is that when I jump it can jump more than once. I set my jump button to 'w' and even while im in mid air I can hit 'w' again and i'll double jump. So I can do like 50 jumps without touching the ground, I can fly. I was wondering how I can make it so it's just one jump and I have to wait till I hit the platform to jump again or how to double jump....either way would really help.

Thank you!

Comments

  • Two.ETwo.E Member Posts: 599

    Hi,

    You need to add another condition to your Jump rule to check if the Actor is colliding with the Ground, or platform.

    This way, the actor will only Jump if they are on the ground AND the player has pressed W.

    Best,

  • AadeeAadee Member Posts: 24

    @Two.E said:
    Hi,

    You need to add another condition to your Jump rule to check if the Actor is colliding with the Ground, or platform.

    This way, the actor will only Jump if they are on the ground AND the player has pressed W.

    Best,

    Thank you so much...I'll try that

Sign In or Register to comment.