I am trying to figure out if it is possible to program the following:
You hold the right arrow key to move a character to the right, and then, when you press and hold the Space Bar, the character animation changes to a crouching position, as if to prepare for a giant leap.
The longer the Space Bar is held down, the higher the amount of energy is expended to propel the character. This is indicated by an Energy Bar to the left side of the game screen.
Upon release of the Space Bar, the character leaps up and forward (because the right arrow key is still being pressed down).
This is part one of what I am trying to program:
As a character is descending during a motion arc (after jumping), I want the leap animation to change as the character so he looks like he's in the stretch position just before landing on the ground. Once he lands, I want a landing animation to immediately play before he stands and goes into an Idle stance.