Class: A_MoveWithSpeed

b5. A_MoveWithSpeed

b5.A_MoveWithSpeed

new b5.A_MoveWithSpeed(target, speed, duration, ease){b5.A_MoveWithSpeed}

actions/generic/movement.js, line 212

Action that moves an object at specific speed in its current direction over the specified time then exits

Created actions should be added to an actor or scenes actions list to be processed

For a complete overview of Actions see Booty5 Actions Overview

Name Type Description
target string | b5.Actor

Path to or instance of target object

speed number

Speed at which to move

duration number

Amount of time to move over in seconds

ease number

Easing function used to increase to target speed (see b5.Ease)

Returns:
Type Description
b5.A_MoveWithSpeed The created action