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

szzg007

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

merrak

  • *
  • Posts: 2738
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: 65
Double click to run。