Preparing for Timeline

This commit is contained in:
Richard Davey 2017-08-31 00:46:38 +01:00
parent 3539cae9bb
commit d3ffd68ac1
2 changed files with 4 additions and 1 deletions

View file

@ -8,7 +8,7 @@
// hold: The time the tween will pause before running a yoyo
// loop: The time the tween will pause before starting either a yoyo or returning to the start for a repeat
// loopDelay:
// offset:
// offset: Used when the Tween is part of a Timeline
// paused: Does the tween start in a paused state, or playing?
// props: The properties being tweened by the tween
// repeat: The number of times the tween will repeat itself (a value of 1 means the tween will play twice, as it repeated once)

View file

@ -41,6 +41,9 @@ var Tween = new Class({
// Countdown timer (used by loopDelay and completeDelay)
this.countdown = 0;
// Set only if this Tween is part of a Timeline. Controls the offset from the start time of the Timeline.
this.offset = 0;
// The current state of the tween
this.state = TWEEN_CONST.PENDING_ADD;