TweenData#value

[readonly] value : number The current calculated value. Source code: tween/TweenData.js (Line 68)

TweenData#TweenData

new TweenData(parent) A Phaser.Tween contains at least one TweenData object. It contains all of the tween data values, such as thestarting and ending values, the ease function, interpolation and duration. The Tween acts as a timeline manager forTweenData objects and can contain multiple TweenData objects. Parameters Name Type Description parent Phaser.Tween The Tween that owns this TweenData object. Source code: tween/TweenData.js (Line 16)

TweenData#to()

to(properties, duration, ease, delay, repeat, yoyo) → {Phaser.TweenData} Sets this tween to be a to tween on the properties given. A to tween starts at the current value and tweens to the destination value given.For example a Sprite with an x coordinate of 100 could be tweened to x 200 by giving a properties object of { x: 200 }. Parameters Name Type Argument Default Description properties object The properties you want to tween, such as Sprite.x or Sound.volume. Given as a JavaScript

TweenData#startTime

startTime : number The time the Tween started or null if it hasn't yet started. Source code: tween/TweenData.js (Line 123)

TweenData#start()

start() → {Phaser.TweenData} Starts the Tween running. Returns Phaser.TweenData - This Tween object. Source code: tween/TweenData.js (Line 239)

TweenData#repeatTotal

[readonly] repeatTotal : number The total number of times this Tween will repeat. Source code: tween/TweenData.js (Line 84)

TweenData#repeatDelay

repeatDelay : number The amount of time in ms between repeats of this tween. Source code: tween/TweenData.js (Line 78)

TweenData#repeatCounter

repeatCounter : number If the Tween is set to repeat this contains the current repeat count. Source code: tween/TweenData.js (Line 73)

TweenData#percent

[readonly] percent : number A value between 0 and 1 that represents how far through the duration this tween is. Source code: tween/TweenData.js (Line 62)

TweenData#parent

parent : Phaser.Tween The Tween which owns this TweenData. Source code: tween/TweenData.js (Line 21)