I wish to know how to detect if the player is currently in the air, or touching the ground, as I am attempting to give Luigi a much higher jump when their action is equal to either ACT_JUMP, ACT_DOUBLE_JUMP or ACT_TRIPLE_JUMP and adding velocity, however this results in the velocity CONSTANTLY increasing in the air when jumping, so instead I have opted for simply doing the velocity increase whenever the A button is pressed on the ground, however I do not know how to detect if you are actually on the ground.