Forum begins after the advertisement:

[Part 2] Unresponsive Double Jump

Home Forums Video Game Tutorial Series Creating a Metroidvania in Unity [Part 2] Unresponsive Double Jump

Viewing 1 post (of 1 total)
  • Author
  • #11634
    Kiefer Neo

    If you’re encountering a bug where you can’t jump again after holding the jump button while falling and then trying to jump, it might be due to the pState.jumping bool updating too slowly. As a result, the air jump check fails, and the player is unable to use their double jump while in the air.

    To fix this issue, follow these steps:
    1)Change the air jump else if statement to an if statement.
    3)Remove any pState.jumping or !pState.jumping checks from the air jump code.

    By making these adjustments, your jumps will become more responsive, and you’ll be able to execute air jumps precisely when you want them. This should resolve the problem and improve your overall gameplay experience.

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.

Go to Login Page →

Advertisement below: