( Dependence: touch wrap plugin)
Set size by dragging two touch points.
This behavior could not be used on pc since there is only one touch pint (mouse).
- Single drag sprite to move and select it
- Dragging with two touch points to resize the selected sprite,
Use "Expression:Scale" to get the scaling. The calculation of this expression is
[code](length between two init dragging points)/(length between two current dragging points)[/code]
Set "Auto scale" to "No" at properties table if user does not want change the size of sprite. Only use it to get the "expression:Scale"
This demo shown the changing of this two dragging points and the "expression:Scale"
- Draw a line between these two touch points.
(user need to install Canvas plugin to open this capx)