Behavior : Slow down
Author:Rex.Rainbow
- Slow down object unitl stop.
Download
Properties
Activated
- Enable if you wish this to begin at the start of the layout.
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.
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
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
Condition:On stop