Need help on maintaining momentum of player..
bladeolson
Member Posts: 295
I was wondering if anyone had any ideas on how I can maintain the momentum of a player after he jumps. Even if the player lets go of the L or R button. Somehow I want to figure out how fast the player is moving, store it, and the keep that speed and direction until he lands. regardless of if the player presses any keys or not.
How would I "store" the momentum? I tried to use the velocity but it seems to not keep while in the air. He just drops after letting go of L or R keys.....
thanks
blade
How would I "store" the momentum? I tried to use the velocity but it seems to not keep while in the air. He just drops after letting go of L or R keys.....
thanks
blade
Comments
After much tinkering and losing more hair, I think I FINALLY got the movement I want. It looks really awesome. Feeling closer and closer to a mario style jump! Momentum is carried into the air and there is a slight momentum on the ground when landing.