( 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,
<img src="http://i1081.photobucket.com/albums/j352/rexrainbow1/screen-1_zpsfcd35c5a.png" border="0">
Use "Expression:Scale" to get the scaling. The calculation of this expression is
(length between two init dragging points)/(length between two current dragging points)
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)