Behavior : Drag & Drop2

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 drag on.
    • Options : ["Both","Horizontal","Vertical"]

Axis angle

  • Offset angle of dragging axis.

Actions

Axis

Action:Set angle

  • Set axis angle.
    • Angle ( number ) : Axis angle, in degrees.

Drag

Action:Try to drag

  • Try to drag this object if is in touched.

Drop

Action:Drop

  • If currently being dragged, force the object to be dropped.

Enable

Action:Set enable

  • Enable or disable the drag and drop behavior.
    • State ( Combo ) : Choose whether to enable or disable the behavior.
      • Options : ["Disabled","Enabled"]

Expressions

Expression:Activated

  • The activated setting, 1 is activated.

Axis

Expression:AxisAngle

  • Get angle of axis.

Drag-angle

Expression:DragAngle

  • Get angle of dragging.

Drag-distance

Expression:DragDistance

  • Get distance between current touch position to drag-start position.

Instance start

Expression:InstStartX

  • Get X co-ordinate of object's position at dragging start.

Expression:InstStartY

  • Get Y co-ordinate of object's position at dragging start.

Position

Expression:X

  • Get the touch X co-ordinate in the layout.

Expression:Y

  • Get the touch Y co-ordinate in the layout.

Start

Expression:DragStartX

  • Get X co-ordinate of dragging start position.

Expression:DragStartY

  • Get Y co-ordinate of dragging start position.

Conditions

Drag

Condition:On dragging start

  • Triggered when object drag start.

Condition:Is dragging

  • Is object dragging.

Drag-angle

Condition:Compare drag-angle

  • Compare drag-angle.
    • Comparison ( cmp ) : Choose the way to compare drag-distance.
    • Angle ( number ) : The angle to compare the drag-angle to, in degrees.

Drag-distance

Condition:Compare drag-distance

  • Compare drag-distance.
    • Comparison ( cmp ) : Choose the way to compare drag-distance.
    • Length ( number ) : The length to compare the drag-distance to, in pixels.

Dragging moving

Condition:On dragging moving start

  • Triggered when object dragging moving start.

Condition:Is dragging moving

  • Is object dragging moving.

Condition:On dragging moving end

  • Triggered when object dragging moving end.

Drop

Condition:On dropped

  • Triggered when object dropped.

Enable

Condition:Is enabled

  • Is behavior enabled.