How to change from pressing the direction key twice to running?

szzg007

  • Posts: 64
How to change from pressing the direction key twice to running? :-*

merrak

  • *
  • Posts: 2724
You can start a timer when the direction key is pressed the first time. When the key is pressed again, it checks the time that has elapsed. If the time elapsed between presses is short enough, count it as a double-press.

szzg007

  • Posts: 64
Double click to run。