mirror of
https://github.com/photonstorm/phaser
synced 2024-11-28 15:41:37 +00:00
Preparing for Timeline
This commit is contained in:
parent
3539cae9bb
commit
d3ffd68ac1
2 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue