Plugin : Dragging to ArrowKey

Author:Rex.Rainbow

Download

Properties

Directions

  • The number of directions of movement available.
    • Options : ["Up & down","Left & right","4 directions","8 directions"]

Sensitivity

  • Sensitivity of touch movment, in pixel.

Reset origin

  • Reset origin when pressing changing. Set "No" for virtual joystick.
    • Options : ["No","Yes"]

Touched layer

  • Touched layer name of number.

Actions

Detector

Action:Cancel

  • Cancel current dragging like touch end.

Touched layer

Action:Set touched layer

  • Set touched layer.
    • Layer ( layer ) : Layer name of number.

Expressions

Current

Expression:CurrX

  • Position X of current point.

Expression:CurrY

  • Position Y of current point.

Distance

Expression:DistX

  • Distance of dragging at X coordinate.

Expression:DistY

  • Distance of dragging at Y coordinate.

Origin

Expression:OX

  • Position X of origin point.

Expression:OY

  • Position Y of origin point.

Conditions

Detecting

Condition:On detecting start

  • Triggered when detecting start.

Condition:On detecting end

  • Triggered when detecting end.

Condition:Is in detecting

  • Return true if is in detecting.

Is down

Condition:Up arrow is down

  • Return true if Up arrow is currently held down.

Condition:Down arrow is down

  • Return true if Down arrow is currently held down.

Condition:Left arrow is down

  • Return true if Left arrow is currently held down.

Condition:Right arrow is down

  • Return true if Right arrow is currently held down.

Condition:Any arrow is down

  • Return true if Any arrow is currently held down.

Pressd

Condition:On Up arrow pressed

  • Triggered when Up arrow is pressed.

Condition:On Down arrow pressed

  • Triggered when Down arrow is pressed.

Condition:On Left arrow pressed

  • Triggered when Left arrow is pressed.

Condition:On Right arrow pressed

  • Triggered when Right arrow is pressed.

Condition:On any arrow pressed

  • Triggered when any arrow is pressed.

Released

Condition:On Up arrow released

  • Triggered when Up arrow is released.

Condition:On Down arrow released

  • Triggered when Down arrow is released.

Condition:On Left arrow released

  • Triggered when Left arrow is released.

Condition:On Right arrow released

  • Triggered when Right arrow is released.