im trying to make a system for my game that would require a player to double tap a key on the keyboard to move fast, how would i do it ?
Develop games in your browser. Powerful, performant & highly capable.
One way to do it is set a variable to 1 on key pressed, start a timer for a certain period, and on timer set the variable back to 0..
if the key is pressed while the variable is 1, you have your double tap..