Trying to do a fast dash forwards. How do I do a double tap left or right with a keyboard? So that the game would do a fast dash when I do a double tap.
You could start a very short timer and say if the right key is pressed and timer is running then do the dash.
I tried this timer. Just dashes automatically without double tapping the right and left keys. Needs to dash on the second time I press the left or right keys.
I just fixed it, put a wait 0.1 seconds before:
Develop games in your browser. Powerful, performant & highly capable.
Ya that was because it's running all events in the same tick and the timer one is true by the time it gets to it. The wait can work or you can use an Else - right key is pressed and sub event : timer is running then dash, Else start timer.