You can add global variable movement and increment it by 1 on touch/click, when it gets to 2. Then add a second variable called stamina and set it to 100, when movement is at 2 and lets says say every 0.1 second, decrement the stamina by 1, when it gets to 0, stop the movement. You will need 3 events to implement it.