Touch Events
There are several types of touch events defined at the canvas level and for sprites.
Canvas Touch | Sprite Touch |
---|---|
|
|
For canvas events, use "set touchstart={Routine Name}" inside a routine to set the handler routine for the whole canvas.
For sprite events, use "touchstart={Routine Name}" inside the "where" clause of a sprite to apply the handler routine to the sprite only.
For sprite events, use "touchdrag=true" inside the "where" clause of a sprite to have the sprite be dragged by a touch.
Check out the reference for full details.
Swipe the canvas
editable

Dragging a sprite
editable

Using touch pivot
Pivots cannot be applied directly to a sprite, but are whole-canvas.
editable

Using touch pinch
Pinching cannot be applied directly to a sprite, but are whole-canvas.
editable
