Behavior : Speed moinitor

Author:Rex.Rainbow

Download

Properties

Actions

Expressions

Last

Expression:LastSpeed

  • Get last non-zero moving speed, in pixels per second

Expression:LastAngle

  • Get last non-zero moving angle, in degree

Speed

Expression:Speed

  • Get current moving speed, in pixels per second

Expression:Angle

  • Get current moving angle, in degree

Conditions

Compare

Condition:Compare speed

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

Condition:Compare angle

  • Compare the current angle of the object.
    • Comparison ( cmp ) : Choose the way to compare the current speed.
    • Angle ( number ) : The current angle, in degree, to compare the current angle to.

Moving

Condition:Is moving

  • Return true if the sprite is moving.

Condition:On moving start

  • Triggered when sprite is moving start.

Condition:On moving stop

  • Triggered when sprite is moving stop.