How to program jumping into a platformer game?

I want to create a platformer which shouldn't be much of a problem. I want the jump action to be like it is in the original mario games or somewhat close to it. Right now I have it set that when the player presses the jump button it changes the vertical velocity to a value which works fine except for a few things. When the actor is standing still he can jump much higher than he can when he is moving. But after the first jump while moving he starts jumping higher again. I can't figure out a way to make the actor jump consistently. You can look at the platformer template and you will see that the actor there does the same thing. Does anyone have a good way to program good jumping?
Sign In or Register to comment.