[Solved] How to stop jumping again

How do I disallow jumping again?

Following the platformer tutorial, when the player falls and collides with an enemy, it allows jumping again and simulates a jump button. In short, the player jumps off of the enemy.

I have chosen not to destroy the enemy, but change the sprite to a non-hostile figure. But this means that when I collide with the fallen enemy, the player can jump ceaselessly.

How can I make my player stop jumping? I would like them to only jump off of the enemy once.

Iā€™m a fool: the answer was right under my nose!

1 Like