can someone pleaz help me out, i am making a platform game were you can walk and run, but to run you have to double tap and hold the key down(duh!!) but i do not know how to do it, i have checked in the search bar and found one thing but i dont understand it, pleaz help me.
new condidtion: upon pressing right arrow, you need to set a timer to however much time you want the player to double-tap the key in. let's say 50/100 of a second.
then you want to have two conditions combined: a)that the player presses and holds whatever key and b)that the timer is greater than zero. that means that your time has not yet expired, since it counts back from 50. when these two conditions are met, then insert your run event.
that should work. i haven't tested it. but in all logic, it should.
"The light which puts out our eyes is darkness to us."
-Henry David Thoreau
Player presses (right) // set value A to 5
Every 00:00:10 + Value A > 5 // subtract 1 from value A
Player presses right + Value A > 5 // Set value B to 1
NEGATE Player holds right // Set value B to 0
Value B = 1 // Set speed to 100 (or whatever he does when you double press)
thanks all, im gonna try all uve given me, just one more thing can someone tell me were i can find a good custom platform movement thats easy to understand and has benn noted well.