I’m making a game for school, it is a platformer type of game and my character jumps with A. I’ve encountered a bug though where if I press the A button while my player character is mid jump, when he lands he’ll jump again. Does anyone know how to fix this?
instead of using On A pressed
place your code into something like this
whats happening is when you press a while your jump code is running you make a “backlog” of inputs
this SHOULD solve that
It seems like the pause block could be delaying the button press until the player hits the ground and fulfills the pause requirements. I suggest using a “on player hits wall bottom” to reset the animation, but make sure to include an it statement confirming the player has a downward velocity or has the animation from jumping so it doesn’t activate every time the player walks.
I think it is because of the pause until block.
Perhaps recode in some way?
Thanks for your help everyone, by removing the pause until block and extending the normal pause It doesn’t have that build up