Move
INFO
Inherits: TypedCommand
Move the object to a new position in the play area.
Example:
ts
new Move({
startTime: 0,
endTime: 1000,
startValue: [0, 0],
endValue: [100, 200],
easing: 3
})Constructor details
ts
new Move({
startTime,
endTime,
startValue,
endValue,
easing
})Parameters:
startTime(number | string | Timestamp) (Timestamp): The start time of the animation.endTime(number | string | Timestamp | undefined) (Timestamp): The end time of the animation. Defaults toundefined.startValue(IVector2 | Vector2Tuple) (Vector2): The starting value of the move.endValue(IVector2 | Vector2Tuple | undefined) (Vector2): The ending value of the move. Defaults toundefined.easing(Easing | undefined) (Easing): The easing function for the move animation. Defaults toundefined.
Properties
Properties inherited from Command:
Properties inherited from TypedCommand: