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.

This will reset when they touch the floor again.

Double Jump Function:

Call it in process

If the player is moving upwards and double jumping

Play the double jump animation