Behavior : Dragging vetctor
Author:Rex.Rainbow
- Move sprite with mouse or touch dragging
Download
Properties
Activated
- Enable if you wish this to begin at the start of the layout.
Axis
- The axis this object can move on.
- Options : ["Both","Horizontal","Vertical","Horizontal or vertical"]
Proportion
- The proportion of sprite moving followed mouse.
Actions
Action:Set activated
- Enable the object's touch moving behavior.
- Activated ( Combo ) : Enable the behavior.
Action:Set proportion
- Set proportionof sprite moving followed mouse.
- Proportion ( number ) : The proportion of sprite moving followed mouse.
Expressions
Expression:Activated
- The activated setting, 1 is activated.
Expression:Proportion
Position
Expression:X
- Get the mouse cursor X co-ordinate in the layout.
Expression:Y
- Get the mouse cursor Y co-ordinate in the layout.
Expression:Speed
- Get the speed of a touch, pixels per second.
Conditions
Condition:On dragging start
- Triggered when object dragging start.
Condition:On dragging stop
- Triggered when object dragging stop.
Condition:Is dragging