Behavior : Slow down

Author:Rex.Rainbow

Download

Properties

Activated

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

Deceleration

  • Deceleration, in pixel per second per second.

Actions

Actived

Action:Set activated

  • Enable the object's slow down behavior.
    • Activated ( Combo ) : Enable the behavior.
      • Options : ["No","Yes"]

Speed

Action:Set deceleration

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

Start

Action:Start

  • Slow down start.
    • Speed ( number ) : The initial speed, in pixel per second.
    • Angle ( number ) : The angle to move toward, in degree.

Stop

Action:Stop

  • Slow down stop.

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 (-1) when object is not moving.

Setting

Expression:Dec

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

Conditions

Condition:Is moving

  • Is object moving.

Condition:On stop

  • Triggered when stop.