I have a character that can fly (infinite double jumps), I want to be able to press space to hover in the character's current position (while in air) and press space again to stop.
I would also like for the player to not be able to move while hovering.
I've made a global variable for being on the floor that is set to zero and I have the variable set to 1 (for on the floor) when the character is on the floor.
Thank you in advance for the help.