::
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.
![source: imgur.com](https://i.imgur.com/NrUI2nR.png)