- Source: src/tweens/typedefs/index.js (Line 7)
Type Definitions
-
Event
-
A Tween Event.
Type:
- string
- Since: 3.19.0
- Source: src/tweens/typedefs/Event.js (Line 1)
-
GetActiveCallback(target, key, value, targetIndex, totalTargets, tween)
-
Parameters:
Name Type Description targetany The tween target.
keystring The target property.
valuenumber The current value of the target property.
targetIndexnumber The index of the target within the Tween.
totalTargetsnumber The total number of targets in this Tween.
tweenPhaser.Tweens.Tween The Tween that invoked this callback.
- Since: 3.19.0
- Source: src/tweens/typedefs/GetActiveCallback.js (Line 1)
Returns:
- The new value.
- Type
- number
-
GetEndCallback(target, key, value, targetIndex, totalTargets, tween)
-
Parameters:
Name Type Description targetany The tween target.
keystring The target property.
valuenumber The current value of the target property.
targetIndexnumber The index of the target within the Tween.
totalTargetsnumber The total number of targets in this Tween.
tweenPhaser.Tweens.Tween The Tween that invoked this callback.
- Since: 3.18.0
- Source: src/tweens/typedefs/GetEndCallback.js (Line 1)
Returns:
- The new value.
- Type
- number
-
GetStartCallback(target, key, value, targetIndex, totalTargets, tween)
-
Parameters:
Name Type Description targetany The tween target.
keystring The target property.
valuenumber The current value of the target property.
targetIndexnumber The index of the target within the Tween.
totalTargetsnumber The total number of targets in this Tween.
tweenPhaser.Tweens.Tween The Tween that invoked this callback.
- Since: 3.18.0
- Source: src/tweens/typedefs/GetStartCallback.js (Line 1)
Returns:
- The new value.
- Type
- number
-
NumberTweenBuilderConfig
-
Type:
- object
- Since: 3.18.0
- Source: src/tweens/typedefs/NumberTweenBuilderConfig.js (Line 1)
Properties:
Name Type Argument Default Description fromnumber <optional>
0 The start number.
tonumber <optional>
1 The end number.
delaynumber <optional>
0 The number of milliseconds to delay before the tween will start.
durationnumber <optional>
1000 The duration of the tween in milliseconds.
easestring | function <optional>
'Power0' The easing equation to use for the tween.
easeParamsarray <optional>
Optional easing parameters.
holdnumber <optional>
0 The number of milliseconds to hold the tween for before yoyo'ing.
repeatnumber <optional>
0 The number of times to repeat the tween.
repeatDelaynumber <optional>
0 The number of milliseconds to pause before a tween will repeat.
yoyoboolean <optional>
false Should the tween complete, then reverse the values incrementally to get back to the starting tween values? The reverse tweening will also take
durationmilliseconds to complete.offsetstring | number | function | object | array <optional>
null Used when the Tween is part of a Timeline.
completeDelaystring | number | function | object | array <optional>
0 The time the tween will wait before the onComplete event is dispatched once it has completed, in ms.
loopstring | number | function | object | array <optional>
0 The number of times the tween will repeat. (A value of 1 means the tween will play twice, as it repeated once.) The first loop starts after every property tween has completed once.
loopDelaystring | number | function | object | array <optional>
0 The time the tween will pause before starting either a yoyo or returning to the start for a repeat.
pausedboolean <optional>
false Does the tween start in a paused state (true) or playing (false)?
useFramesboolean <optional>
false Use frames or milliseconds?
callbackScopeany <optional>
Scope (this) for the callbacks. The default scope is the tween.
onCompletePhaser.Types.Tweens.TweenOnCompleteCallback <optional>
A function to call when the tween completes.
onCompleteParamsarray <optional>
Additional parameters to pass to
onComplete.onCompleteScopeany <optional>
Scope (this) for
onComplete.onLoopPhaser.Types.Tweens.TweenOnLoopCallback <optional>
A function to call each time the tween loops.
onLoopParamsarray <optional>
Additional parameters to pass to
onLoop.onLoopScopeany <optional>
Scope (this) for
onLoop.onRepeatPhaser.Types.Tweens.TweenOnRepeatCallback <optional>
A function to call each time the tween repeats. Called once per property per target.
onRepeatParamsarray <optional>
Additional parameters to pass to
onRepeat.onRepeatScopeany <optional>
Scope (this) for
onRepeat.onStartPhaser.Types.Tweens.TweenOnStartCallback <optional>
A function to call when the tween starts.
onStartParamsarray <optional>
Additional parameters to pass to
onStart.onStartScopeany <optional>
Scope (this) for
onStart.onStopPhaser.Types.Tweens.TweenOnStopCallback <optional>
A function to call when the tween is stopped.
onStopParamsarray <optional>
Additional parameters to pass to
onStop.onStopScopeany <optional>
Scope (this) for
onStop.onUpdatePhaser.Types.Tweens.TweenOnUpdateCallback <optional>
A function to call each time the tween steps. Called once per property per target.
onUpdateParamsarray <optional>
Additional parameters to pass to
onUpdate.onUpdateScopeany <optional>
Scope (this) for
onUpdate.onYoyoPhaser.Types.Tweens.TweenOnYoyoCallback <optional>
A function to call each time the tween yoyos. Called once per property per target.
onYoyoParamsarray <optional>
Additional parameters to pass to
onYoyo.onYoyoScopeany <optional>
Scope (this) for
onYoyo. -
StaggerConfig
-
Type:
- object
- Since: 3.19.0
- Source: src/tweens/typedefs/StaggerConfig.js (Line 1)
Properties:
Name Type Argument Default Description startnumber <optional>
0 The value to start the stagger from. Can be used as a way to offset the stagger while still using a range for the value.
easestring | function <optional>
'Linear' An ease to apply across the staggered values. Can either be a string, such as 'sine.inout', or a function.
fromstring | number <optional>
0 The index to start the stagger from. Can be the strings
first,lastorcenter, or an integer representing the stagger position.gridArray.<number> <optional>
Set the stagger to run across a grid by providing an array where element 0 is the width of the grid and element 1 is the height. Combine with the 'from' property to control direction.
Example
{ grid: [ 20, 8 ], from: 'center', ease: 'Power0', start: 100 }; -
TimelineBuilderConfig
-
Type:
- object
- Since: 3.18.0
- Source: src/tweens/typedefs/TimelineBuilderConfig.js (Line 1)
- See:
Properties:
Name Type Argument Default Description tweensArray.<Phaser.Types.Tweens.TweenBuilderConfig> | Array.<object> | function <optional>
An array of tween configuration objects to create and add into the new Timeline. If this doesn't exist or is empty, the Timeline will start off paused and none of the other configuration settings will be read. If it's a function, it will be called and its return value will be used as the array.
targetsany <optional>
An array (or function which returns one) of default targets to which to apply the Timeline. Each individual Tween configuration can override this value.
totalDurationnumber <optional>
0 If specified, each Tween in the Timeline will get an equal portion of this duration, usually in milliseconds, by default. Each individual Tween configuration can override the Tween's duration.
durationnumber <optional>
1000 If
totalDurationis not specified, the default duration, usually in milliseconds, of each Tween which will be created. Each individual Tween configuration can override the Tween's duration.delaynumber <optional>
0 The number of milliseconds to delay before the tween will start. Each individual Tween configuration can override this value.
easeParamsarray <optional>
Optional easing parameters. Each individual Tween configuration can override this value.
easestring | function <optional>
'Power0' The easing equation to use for each tween. Each individual Tween configuration can override this value.
holdnumber <optional>
0 The number of milliseconds to hold each tween before yoyo'ing. Each individual Tween configuration can override this value.
repeatnumber <optional>
0 The number of times to repeat each tween. Each individual Tween configuration can override this value.
repeatDelaynumber <optional>
0 The number of milliseconds to pause before each tween will repeat. Each individual Tween configuration can override this value.
yoyoboolean <optional>
false Should each tween complete, then reverse the values incrementally to get back to the starting tween values? The reverse tweening will also take
durationmilliseconds to complete. Each individual Tween configuration can override this value.flipXboolean <optional>
false Horizontally flip the target of the Tween when it completes (before it yoyos, if set to do so). Only works for targets that support the
flipXproperty. Each individual Tween configuration can override this value.flipYboolean <optional>
false Vertically flip the target of the Tween when it completes (before it yoyos, if set to do so). Only works for targets that support the
flipYproperty. Each individual Tween configuration can override this value.completeDelaynumber | function | object | array <optional>
0 If specified, the time to wait, usually in milliseconds, before the Timeline completes.
loopnumber | function | object | array <optional>
0 How many times the Timeline should loop, or -1 to loop indefinitely.
loopDelaynumber | function | object | array <optional>
0 The time, usually in milliseconds, between each loop.
pausedboolean <optional>
false If
true, the Timeline will start paused.useFramesboolean <optional>
false If
true, all duration in the Timeline will be in frames instead of milliseconds.callbackScopeany <optional>
The default scope (
thisvalue) to use for each callback registered by the Timeline Builder. If not specified, the Timeline itself will be used.onStartPhaser.Types.Tweens.TimelineOnStartCallback <optional>
If specified, the
onStartcallback for the Timeline, called every time it starts playing.onStartScopeany <optional>
The scope (
thisvalue) to use for theonStartcallback. If not specified, thecallbackScopewill be used.onStartParamsarray <optional>
Additional arguments to pass to the
onStartcallback. The Timeline will always be the first argument.onUpdatePhaser.Types.Tweens.TimelineOnUpdateCallback <optional>
If specified, the
onUpdatecallback for the Timeline, called every frame it's active, regardless of its Tweens.onUpdateScopeany <optional>
The scope (
thisvalue) to use for theonUpdatecallback. If not specified, thecallbackScopewill be used.onUpdateParamsarray <optional>
Additional arguments to pass to the
onUpdatecallback. The Timeline will always be the first argument.onLoopPhaser.Types.Tweens.TimelineOnLoopCallback <optional>
If specified, the
onLoopcallback for the Timeline, called every time it loops.onLoopScopeany <optional>
The scope (
thisvalue) to use for theonLoopcallback. If not specified, thecallbackScopewill be used.onLoopParamsarray <optional>
Additional arguments to pass to the
onLoopcallback. The Timeline will always be the first argument.onYoyoPhaser.Types.Tweens.TimelineOnYoyoCallback <optional>
If specified, the
onYoyocallback for the Timeline, called every time it yoyos.onYoyoScopeany <optional>
The scope (
thisvalue) to use for theonYoyocallback. If not specified, thecallbackScopewill be used.onYoyoParamsarray <optional>
Additional arguments to pass to the
onYoyocallback. The first argument will always benull, while the Timeline will always be the second argument.onCompletePhaser.Types.Tweens.TimelineOnCompleteCallback <optional>
If specified, the
onCompletecallback for the Timeline, called after it completes.onCompleteScopeany <optional>
The scope (
thisvalue) to use for theonCompletecallback. If not specified, thecallbackScopewill be used.onCompleteParamsarray <optional>
Additional arguments to pass to the
onCompletecallback. The Timeline will always be the first argument. -
TimelineOnCompleteCallback(timeline, param)
-
Parameters:
Name Type Argument Description timelinePhaser.Tweens.Timeline The timeline.
paramany <repeatable>
Any value passed in
onCompleteParams.- Since: 3.18.0
- Source: src/tweens/typedefs/TimelineOnCompleteCallback.js (Line 1)
-
TimelineOnLoopCallback(timeline, param)
-
Parameters:
Name Type Argument Description timelinePhaser.Tweens.Timeline The timeline.
paramany <repeatable>
Any value passed in
onLoopParams.- Since: 3.18.0
- Source: src/tweens/typedefs/TimelineOnLoopCallback.js (Line 1)
-
TimelineOnStartCallback(timeline, param)
-
Parameters:
Name Type Argument Description timelinePhaser.Tweens.Timeline The timeline.
paramany <repeatable>
Any value passed in
onStartParams.- Since: 3.18.0
- Source: src/tweens/typedefs/TimelineOnStartCallback.js (Line 1)
-
TimelineOnUpdateCallback(timeline, param)
-
Parameters:
Name Type Argument Description timelinePhaser.Tweens.Timeline The timeline.
paramany <repeatable>
Any value passed in
onUpdateParams.- Since: 3.18.0
- Source: src/tweens/typedefs/TimelineOnUpdateCallback.js (Line 1)
-
TimelineOnYoyoCallback(timeline, param)
-
Parameters:
Name Type Argument Description timelinePhaser.Tweens.Timeline The timeline.
paramany <repeatable>
Any value passed in
onYoyoParams.- Since: 3.18.0
- Source: src/tweens/typedefs/TimelineOnYoyoCallback.js (Line 1)
-
TweenBuilderConfig
-
Type:
- object
- Since: 3.18.0
- Source: src/tweens/typedefs/TweenBuilderConfig.js (Line 1)
Properties:
Name Type Argument Default Description targetsany The object, or an array of objects, to run the tween on.
delaynumber | function <optional>
0 The number of milliseconds to delay before the tween will start.
durationnumber <optional>
1000 The duration of the tween in milliseconds.
easestring | function <optional>
'Power0' The easing equation to use for the tween.
easeParamsarray <optional>
Optional easing parameters.
holdnumber <optional>
0 The number of milliseconds to hold the tween for before yoyo'ing.
repeatnumber <optional>
0 The number of times each property tween repeats.
repeatDelaynumber <optional>
0 The number of milliseconds to pause before a repeat.
yoyoboolean <optional>
false Should the tween complete, then reverse the values incrementally to get back to the starting tween values? The reverse tweening will also take
durationmilliseconds to complete.flipXboolean <optional>
false Horizontally flip the target of the Tween when it completes (before it yoyos, if set to do so). Only works for targets that support the
flipXproperty.flipYboolean <optional>
false Vertically flip the target of the Tween when it completes (before it yoyos, if set to do so). Only works for targets that support the
flipYproperty.offsetstring | number | function | object | array <optional>
null Used when the Tween is part of a Timeline.
completeDelaystring | number | function | object | array <optional>
0 The time the tween will wait before the onComplete event is dispatched once it has completed, in ms.
loopstring | number | function | object | array <optional>
0 The number of times the tween will repeat. (A value of 1 means the tween will play twice, as it repeated once.) The first loop starts after every property tween has completed once.
loopDelaystring | number | function | object | array <optional>
0 The time the tween will pause before starting either a yoyo or returning to the start for a repeat.
pausedboolean <optional>
false Does the tween start in a paused state (true) or playing (false)?
propsObject.<string, (number|string|Phaser.Types.Tweens.GetEndCallback|Phaser.Types.Tweens.TweenPropConfig)> <optional>
The properties to tween.
useFramesboolean <optional>
false Use frames or milliseconds?
callbackScopeany <optional>
Scope (this) for the callbacks. The default scope is the tween.
onCompletePhaser.Types.Tweens.TweenOnCompleteCallback <optional>
A function to call when the tween completes.
onCompleteParamsarray <optional>
Additional parameters to pass to
onComplete.onCompleteScopeany <optional>
Scope (this) for
onComplete.onLoopPhaser.Types.Tweens.TweenOnLoopCallback <optional>
A function to call each time the tween loops.
onLoopParamsarray <optional>
Additional parameters to pass to
onLoop.onLoopScopeany <optional>
Scope (this) for
onLoop.onRepeatPhaser.Types.Tweens.TweenOnRepeatCallback <optional>
A function to call each time the tween repeats. Called once per property per target.
onRepeatParamsarray <optional>
Additional parameters to pass to
onRepeat.onRepeatScopeany <optional>
Scope (this) for
onRepeat.onStartPhaser.Types.Tweens.TweenOnStartCallback <optional>
A function to call when the tween starts playback, after any delays have expired.
onStartParamsarray <optional>
Additional parameters to pass to
onStart.onStartScopeany <optional>
Scope (this) for
onStart.onStopPhaser.Types.Tweens.TweenOnStopCallback <optional>
A function to call when the tween is stopped.
onStopParamsarray <optional>
Additional parameters to pass to
onStop.onStopScopeany <optional>
Scope (this) for
onStop.onUpdatePhaser.Types.Tweens.TweenOnUpdateCallback <optional>
A function to call each time the tween steps. Called once per property per target.
onUpdateParamsarray <optional>
Additional parameters to pass to
onUpdate.onUpdateScopeany <optional>
Scope (this) for
onUpdate.onYoyoPhaser.Types.Tweens.TweenOnYoyoCallback <optional>
A function to call each time the tween yoyos. Called once per property per target.
onYoyoParamsarray <optional>
Additional parameters to pass to
onYoyo.onYoyoScopeany <optional>
Scope (this) for
onYoyo.onActivePhaser.Types.Tweens.TweenOnActiveCallback <optional>
A function to call when the tween becomes active within the Tween Manager.
onActiveParamsarray <optional>
Additional parameters to pass to
onActive.onActiveScopeany <optional>
Scope (this) for
onActive.Example
{ targets: null, delay: 0, duration: 1000, ease: 'Power0', easeParams: null, hold: 0, repeat: 0, repeatDelay: 0, yoyo: false, flipX: false, flipY: false }; -
TweenConfigDefaults
-
Type:
- object
- Since: 3.0.0
- Source: src/tweens/tween/Defaults.js (Line 7)
Properties:
Name Type Argument Default Description targetsobject | Array.<object> The object, or an array of objects, to run the tween on.
delaynumber <optional>
0 The number of milliseconds to delay before the tween will start.
durationnumber <optional>
1000 The duration of the tween in milliseconds.
easestring <optional>
'Power0' The easing equation to use for the tween.
easeParamsarray <optional>
Optional easing parameters.
holdnumber <optional>
0 The number of milliseconds to hold the tween for before yoyo'ing.
repeatnumber <optional>
0 The number of times to repeat the tween.
repeatDelaynumber <optional>
0 The number of milliseconds to pause before a tween will repeat.
yoyoboolean <optional>
false Should the tween complete, then reverse the values incrementally to get back to the starting tween values? The reverse tweening will also take
durationmilliseconds to complete.flipXboolean <optional>
false Horizontally flip the target of the Tween when it completes (before it yoyos, if set to do so). Only works for targets that support the
flipXproperty.flipYboolean <optional>
false Vertically flip the target of the Tween when it completes (before it yoyos, if set to do so). Only works for targets that support the
flipYproperty. -
TweenDataConfig
-
Type:
- object
- Since: 3.0.0
- Source: src/tweens/typedefs/TweenDataConfig.js (Line 1)
Properties:
Name Type Argument Default Description targetany The target to tween.
indexnumber The target index within the Tween targets array.
keystring The property of the target being tweened.
getActiveValuePhaser.Types.Tweens.GetActiveCallback <nullable>
If not null, is invoked immediately as soon as the TweenData is running, and is set on the target property.
getEndValuePhaser.Types.Tweens.GetEndCallback The returned value sets what the property will be at the END of the Tween.
getStartValuePhaser.Types.Tweens.GetStartCallback The returned value sets what the property will be at the START of the Tween.
easefunction The ease function this tween uses.
durationnumber <optional>
0 Duration of the tween in ms/frames, excludes time for yoyo or repeats.
totalDurationnumber <optional>
0 The total calculated duration of this TweenData (based on duration, repeat, delay and yoyo)
delaynumber <optional>
0 Time in ms/frames before tween will start.
yoyoboolean <optional>
false Cause the tween to return back to its start value after hold has expired.
holdnumber <optional>
0 Time in ms/frames the tween will pause before running the yoyo or starting a repeat.
repeatnumber <optional>
0 Number of times to repeat the tween. The tween will always run once regardless, so a repeat value of '1' will play the tween twice.
repeatDelaynumber <optional>
0 Time in ms/frames before the repeat will start.
flipXboolean <optional>
false Automatically call toggleFlipX when the TweenData yoyos or repeats
flipYboolean <optional>
false Automatically call toggleFlipY when the TweenData yoyos or repeats
progressnumber <optional>
0 Between 0 and 1 showing completion of this TweenData.
elapsednumber <optional>
0 Delta counter
repeatCounternumber <optional>
0 How many repeats are left to run?
startnumber <optional>
0 The property value at the start of the ease.
currentnumber <optional>
0 The current propety value.
previousnumber <optional>
0 The previous property value.
endnumber <optional>
0 The property value at the end of the ease.
t1number <optional>
0 Time duration 1.
t2number <optional>
0 Time duration 2.
genPhaser.Types.Tweens.TweenDataGenConfig <optional>
LoadValue generation functions.
statenumber <optional>
0 TWEEN_CONST.CREATED
-
TweenDataGenConfig
-
Type:
- object
- Since: 3.0.0
- Source: src/tweens/typedefs/TweenDataGenConfig.js (Line 1)
Properties:
Name Type Description delayfunction Time in ms/frames before tween will start.
durationfunction Duration of the tween in ms/frames, excludes time for yoyo or repeats.
holdfunction Time in ms/frames the tween will pause before running the yoyo or starting a repeat.
repeatfunction Number of times to repeat the tween. The tween will always run once regardless, so a repeat value of '1' will play the tween twice.
repeatDelayfunction Time in ms/frames before the repeat will start.
-
TweenOnActiveCallback(tween, target, param)
-
Parameters:
Name Type Argument Description tweenPhaser.Tweens.Tween The tween.
targetany The tween target.
paramany <repeatable>
Any value passed in
onActiveParams.- Since: 3.19.0
- Source: src/tweens/typedefs/TweenOnActiveCallback.js (Line 1)
-
TweenOnCompleteCallback(tween, targets, param)
-
Parameters:
Name Type Argument Description tweenPhaser.Tweens.Tween The tween.
targetsarray The tween targets.
paramany <repeatable>
Any value passed in
onCompleteParams.- Since: 3.18.0
- Source: src/tweens/typedefs/TweenOnCompleteCallback.js (Line 1)
-
TweenOnLoopCallback(tween, targets, param)
-
Parameters:
Name Type Argument Description tweenPhaser.Tweens.Tween The tween.
targetsarray The tween targets.
paramany <repeatable>
Any value passed in
onLoopParams.- Since: 3.18.0
- Source: src/tweens/typedefs/TweenOnLoopCallback.js (Line 1)
-
TweenOnRepeatCallback(tween, target, param)
-
Parameters:
Name Type Argument Description tweenPhaser.Tweens.Tween The tween.
targetany The tween target.
paramany <repeatable>
Any value passed in
onRepeatParams.- Since: 3.18.0
- Source: src/tweens/typedefs/TweenOnRepeatCallback.js (Line 1)
-
TweenOnStartCallback(tween, targets, param)
-
Parameters:
Name Type Argument Description tweenPhaser.Tweens.Tween The tween.
targetsarray The tween targets.
paramany <repeatable>
Any value passed in
onStartParams.- Since: 3.18.0
- Source: src/tweens/typedefs/TweenOnStartCallback.js (Line 1)
-
TweenOnStopCallback(tween, targets, param)
-
Parameters:
Name Type Argument Description tweenPhaser.Tweens.Tween The tween.
targetsarray The tween targets.
paramany <repeatable>
Any value passed in
onStopParams.- Since: 3.24.0
- Source: src/tweens/typedefs/TweenOnStopCallback.js (Line 1)
-
TweenOnUpdateCallback(tween, target, param)
-
Parameters:
Name Type Argument Description tweenPhaser.Tweens.Tween The tween.
targetany The tween target.
paramany <repeatable>
Any value passed in
onUpdateParams.- Since: 3.18.0
- Source: src/tweens/typedefs/TweenOnUpdateCallback.js (Line 1)
-
TweenOnYoyoCallback(tween, target, param)
-
Parameters:
Name Type Argument Description tweenPhaser.Tweens.Tween The tween.
targetany The tween target.
paramany <repeatable>
Any value passed in
onYoyoParams.- Since: 3.18.0
- Source: src/tweens/typedefs/TweenOnYoyoCallback.js (Line 1)
-
TweenPropConfig
-
Type:
- object
- Since: 3.18.0
- Source: src/tweens/typedefs/TweenPropConfig.js (Line 1)
Properties:
Name Type Argument Description valuenumber | string | Phaser.Types.Tweens.GetEndCallback | Phaser.Types.Tweens.TweenPropConfig <optional>
What the property will be at the END of the Tween.
getActivePhaser.Types.Tweens.GetActiveCallback <optional>
What the property will be set to immediately when this tween becomes active.
getEndPhaser.Types.Tweens.GetEndCallback <optional>
What the property will be at the END of the Tween.
getStartPhaser.Types.Tweens.GetStartCallback <optional>
What the property will be at the START of the Tween.
easestring | function <optional>
The ease function this tween uses.
delaynumber <optional>
Time in ms/frames before tween will start.
durationnumber <optional>
Duration of the tween in ms/frames.
yoyoboolean <optional>
Determines whether the tween should return back to its start value after hold has expired.
holdnumber <optional>
Time in ms/frames the tween will pause before repeating or returning to its starting value if yoyo is set to true.
repeatnumber <optional>
Number of times to repeat the tween. The tween will always run once regardless, so a repeat value of '1' will play the tween twice.
repeatDelaynumber <optional>
Time in ms/frames before the repeat will start.
flipXboolean <optional>
Should toggleFlipX be called when yoyo or repeat happens?
flipYboolean <optional>
Should toggleFlipY be called when yoyo or repeat happens?
