by j2graves » Thu Sep 01, 2011 2:14 pm
I'm working on a game that involves platforming. One thing that I want to happen is that when a player taps the jump button, the player actor will jump a certain height. If however, the player holds in the button, the actor will jump higher until the player lets go of the button. I know that one way to do this is to do keyup/script editor/ " yvelocity = 0; ", But the thing is, this means that if a player taps the button quickly, the actor will stop moving upward just a tiny bit above the ground. I want this only to happen after a set time period, but I don't want to use timers, because timers don't account for the possibility of lag. Does anyone understand what I want? Could someone help me?
No games to my name...