Class: A_Move

b5. A_Move

b5.A_Move

new b5.A_Move(target, dx, dy, duration){b5.A_Move}

actions/generic/movement.js, line 120

Action that moves an object dx, dy units 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

dx number

Distance to move on x axis (passing null will not affect the property)

dy number

Distance to move on y axis (passing null will not affect the property)

duration number

Amount of time to move over in seconds

Returns:
Type Description
b5.A_Move The created action