Any help?
Code:
key_down(k)
..()
if(k == "r")
base_speed = base_speed+10
else
base_speed = 4
Problem description: I want to make a double-tap running system.
ID:1122237
![]() Jan 11 2013, 4:55 pm
|
|
Okay, so I'm currently playing around with Forum Account's action RPG framework, and I was trying to incorporate my own running system into it. Basically, whenever I double-tap an arrow direction within the span of a third of a second, I want the user to move faster until I release the key (Pretty simple, right?). I tried many different procs to get the player to do this, but it just doesn't seem to work. The code I'm posting here made the user run without stopping once I released the key.
Any help? Code: key_down(k) Problem description: I want to make a double-tap running system. |
Okay, I got the running var down, but how do I store in a var how much time has passed since key_down has pressed a directional key?
|
Obviously set running = FALSE again on key_up().