Behavior : Dragging vetctor

Author:Rex.Rainbow

Download

Properties

Activated

  • Enable if you wish this to begin at the start of the layout.
    • Options : ["No","Yes"]

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.
      • Options : ["No","Yes"]

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

  • The Proportion setting.

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

  • Is object dragging.