SnapCracklins
Hello!
The physics_process(delta) does not exist in this class. The functions instead receives a signal every physics frame that more or less works like physics_process(delta) that is being sent by another class thanks to the State Chart plugin I'm using. The functions are not always being called as there are some states where some functions are disabled to make way for other functionalities I plan for the player character.
Yes. 'apply_gravity(delta)' receives a signal each physics frame if the current state that is active sends signals to it.
No. No reason at all at the moment, I just thought it would look uniform with the rest of the if statements inside the function.
I also tried using the code in the Github example on a fresh scene after reading your comment. I didn't encounter the issue so I'm left wondering if its because my jump_character function is called every physics frame as long as the player holds the jump button during the jump state. Would that require a different calculation?