Double jumping is tricky because we have to prevent the player from flying or floating by continually pressing jump in the air.
Double jumping is tricky because we have to prevent the player from flying or floating by continually pressing jump in the air.
To do this we will limit the player to ONE double-jump.
To do this we will limit the player to ONE double-jump.
This will reset when they touch the floor again.
This will reset when they touch the floor again.
Double Jump Function:
Double Jump Function:
Call it in process
Call it in process
If the player is moving upwards and double jumping
If the player is moving upwards and double jumping
Play the double jump animation
Play the double jump animation