Set per-step move delay (:step_delay)
Declaration
te = te:step_delay(ms)
Parameters
- ms
Number, optional. Per-step delay in milliseconds. Default: 0.1.
Returns
- te
Touch event object itself. You can get a touch event object viatouch.on
.
Notes
- Set the per-step delay when using
:move
to slide.
Example
-- Touch at 100,100, slide to 200,200 with step length 3 and per-step delay 0.2 ms, then lift
touch.on(100, 100):step_len(3):step_delay(0.2):move(200, 200):off()