- Source: src/tweens/index.js (Line 10)
Classes
Namespaces
Members
-
<static> ACTIVE :number
-
Tween state.
Type:
- number
- Since: 3.0.0
- Source: src/tweens/tween/const.js (Line 128)
-
<static> COMPLETE :number
-
TweenData state.
Type:
- number
- Since: 3.0.0
- Source: src/tweens/tween/const.js (Line 90)
-
<static> COMPLETE_DELAY :number
-
Tween state.
Type:
- number
- Since: 3.0.0
- Source: src/tweens/tween/const.js (Line 137)
-
<static> CREATED :number
-
TweenData state.
Type:
- number
- Since: 3.0.0
- Source: src/tweens/tween/const.js (Line 9)
-
<static> DELAY :number
-
TweenData state.
Type:
- number
- Since: 3.0.0
- Source: src/tweens/tween/const.js (Line 27)
-
<static> HOLD_DELAY :number
-
TweenData state.
Type:
- number
- Since: 3.0.0
- Source: src/tweens/tween/const.js (Line 72)
-
<static> INIT :number
-
TweenData state.
Type:
- number
- Since: 3.0.0
- Source: src/tweens/tween/const.js (Line 18)
-
<static> LOOP_DELAY :number
-
Tween state.
Type:
- number
- Since: 3.0.0
- Source: src/tweens/tween/const.js (Line 119)
-
<static> OFFSET_DELAY :number
-
TweenData state.
Type:
- number
- Since: 3.0.0
- Source: src/tweens/tween/const.js (Line 36)
-
<static> PAUSED :number
-
Tween state.
Type:
- number
- Since: 3.0.0
- Source: src/tweens/tween/const.js (Line 110)
-
<static> PENDING_ADD :number
-
Tween state.
Type:
- number
- Since: 3.0.0
- Source: src/tweens/tween/const.js (Line 101)
-
<static> PENDING_REMOVE :number
-
Tween state.
Type:
- number
- Since: 3.0.0
- Source: src/tweens/tween/const.js (Line 146)
-
<static> PENDING_RENDER :number
-
TweenData state.
Type:
- number
- Since: 3.0.0
- Source: src/tweens/tween/const.js (Line 45)
-
<static> PLAYING_BACKWARD :number
-
TweenData state.
Type:
- number
- Since: 3.0.0
- Source: src/tweens/tween/const.js (Line 63)
-
<static> PLAYING_FORWARD :number
-
TweenData state.
Type:
- number
- Since: 3.0.0
- Source: src/tweens/tween/const.js (Line 54)
-
<static> REMOVED :number
-
Tween state.
Type:
- number
- Since: 3.0.0
- Source: src/tweens/tween/const.js (Line 155)
-
<static> REPEAT_DELAY :number
-
TweenData state.
Type:
- number
- Since: 3.0.0
- Source: src/tweens/tween/const.js (Line 81)
Methods
-
<static> TweenData(target, index, key, getEnd, getStart, getActive, ease, delay, duration, yoyo, hold, repeat, repeatDelay, flipX, flipY)
-
Returns a TweenDataConfig object that describes the tween data for a unique property of a unique target. A single Tween consists of multiple TweenDatas, depending on how many properties are being changed by the Tween.
This is an internal function used by the TweenBuilder and should not be accessed directly, instead, Tweens should be created using the GameObjectFactory or GameObjectCreator.
Parameters:
Name Type Argument Description targetany The target to tween.
indexnumber The target index within the Tween targets array.
keystring The property of the target to tween.
getEndfunction What the property will be at the END of the Tween.
getStartfunction What the property will be at the START of the Tween.
getActivefunction <nullable>
If not null, is invoked immediately as soon as the TweenData is running, and is set on the target property.
easefunction The ease function this tween uses.
delaynumber Time in ms/frames before tween will start.
durationnumber Duration of the tween in ms/frames.
yoyoboolean Determines whether the tween should return back to its start value after hold has expired.
holdnumber Time in ms/frames the tween will pause before repeating or returning to its starting value if yoyo is set to true.
repeatnumber 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 Time in ms/frames before the repeat will start.
flipXboolean Should toggleFlipX be called when yoyo or repeat happens?
flipYboolean Should toggleFlipY be called when yoyo or repeat happens?
- Since: 3.0.0
- Source: src/tweens/tween/TweenData.js (Line 7)
Returns:
The config object describing this TweenData.
