Behavior : MoveTo

Author:Rex.Rainbow

Download

Properties

Activated

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

Max speed

  • Maximum speed, in pixel per second.

Acceleration

  • Acceleration, in pixel per second per second.

Deceleration

  • Deceleration, in pixel per second per second.

Stop by solid

  • Enable if you wish to stop while hitting a solid object.
    • Options : ["No","Yes"]

Continued mode

  • Moving as in continued-time.
    • Options : ["No","Yes"]

Actions

Enable

Action:Set enabled

  • Set whether this behavior is enabled. It will also pause current moving.
    • State ( Combo ) : Set whether to enable or disable the behavior.
      • Options : ["Disabled","Enabled"]

Action:Stop by solid

  • Enabled or disable stop by solid.
    • State ( Combo ) : Set whether to enable or disable the behavior.
      • Options : ["Disabled","Enabled"]

MoveTo

Action:Move to XY

  • Move to specific position.
    • X ( number ) : The X co-ordinate to move toward.
    • Y ( number ) : The Y co-ordinate to move toward.

Action:Move to object

  • Move to object.
    • Target ( object ) : Target object.

Action:Move to delta XY

  • Move to specific position by deltaXY.
    • dX ( number ) : The delta X to move toward, in pixel.
    • dY ( number ) : The delta Y to move toward, in pixel.

Action:Move to distance-angle

  • Move to specific position by distance-angle.
    • Distance ( number ) : The destance to move toward, in pixel.
    • Angle ( number ) : The angle of moving destance to move toward, in degree.

Action:Move to UID

  • Move to object by UID.
    • UID ( number ) : UID of target object.

Speed

Action:Set maximum speed

  • Set the object's maximum speed.
    • Max speed ( number ) : Maximum speed, in pixel per second.

Action:Set acceleration

  • Set the object's acceleration.
    • Acceleration ( number ) : The acceleration setting, in pixel per second per second.

Action:Set deceleration

  • Set the object's deceleration.
    • Deceleration ( number ) : The deceleration setting, in pixels per second per second.

Action:Set current speed

  • Set the object's Current speed.
    • Current speed ( number ) : Current speed, in pixel per second.

Stop

Action:Stop

  • Stop moving.

Expressions

Current

Expression:Activated

  • The current activated state of behavior.

Expression:Speed

  • The current object speed, in pixel per second.

Expression:MovingAngle

  • Get current moving angle, in degree. Retrun last moving angle when object is not moving.

Setting

Expression:MaxSpeed

  • The maximum speed setting, in pixel per second.

Expression:Acc

  • The acceleration setting, in pixel per second per second.

Expression:Dec

  • The deceleration setting, in pixel per second per second.

Start

Expression:MovingAngleStart

  • Get moving angle from start position to target position, in degree.

Target

Expression:TargetX

  • The X co-ordinate of target position to move toward.

Expression:TargetY

  • The Y co-ordinate of target position to move toward.

Conditions

Condition:On hit target position

  • Triggered when hit target position.

Condition:Is moving

  • Is object moving.

Moving angle

Condition:Compare moving angle

  • Compare the current moving angle of the object.
    • Comparison ( cmp ) : Choose the way to compare the current moving angle.
    • Angle ( number ) : The moving angle, in pixel per second, to compare the current moving angle to.

Solid

Condition:On stopped by solid

  • Triggered when stopped by solid object.

Speed

Condition:Compare speed

  • Compare the current speed of the object.
    • Comparison ( cmp ) : Choose the way to compare the current speed.
    • Speed ( number ) : The speed, in pixel per second, to compare the current speed to.