Class: A_MoveTo

b5. A_MoveTo

b5.A_MoveTo

new b5.A_MoveTo(target, x, y, duration, ease_x, ease_y){b5.A_MoveTo}

actions/generic/movement.js, line 163

Action that moves an object to a specific coordinate 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

x number

Target x-axis position to move to (passing null will not affect the property)

y number

Target y-axis position to move to (passing null will not affect the property)

duration number

Amount of time to move over in seconds

ease_x number

Easing function to use on x-axis (see b5.Ease)

ease_y number

Easing function to use on y-axis (see b5.Ease)

Returns:
Type Description
b5.A_MoveTo The created action