diff --git a/src/tweens/tween/BaseTween.js b/src/tweens/tween/BaseTween.js index b059800991..f50f097cac 100644 --- a/src/tweens/tween/BaseTween.js +++ b/src/tweens/tween/BaseTween.js @@ -548,13 +548,13 @@ var BaseTween = new Class({ */ updateStartCountdown: function (delta) { - this.countdown -= delta; + this.startDelay -= delta; - if (this.countdown <= 0) + if (this.startDelay <= 0) { - this.hasStarted = true; - this.setActiveState(); + + this.hasStarted = true; this.dispatchEvent(Events.TWEEN_START, 'onStart'); diff --git a/src/tweens/tween/Tween.js b/src/tweens/tween/Tween.js index 5751d076e1..433ba5f32a 100644 --- a/src/tweens/tween/Tween.js +++ b/src/tweens/tween/Tween.js @@ -684,17 +684,7 @@ var Tween = new Class({ } else if (!this.hasStarted) { - this.startDelay -= delta; - - if (this.startDelay <= 0) - { - this.hasStarted = true; - - this.dispatchEvent(Events.TWEEN_START, 'onStart'); - - // Reset the delta so we always start progress from zero - delta = 0; - } + delta = this.updateStartCountdown(delta); } var stillRunning = false; diff --git a/src/tweens/tween/TweenChain.js b/src/tweens/tween/TweenChain.js index df12aa858f..f9b1949508 100644 --- a/src/tweens/tween/TweenChain.js +++ b/src/tweens/tween/TweenChain.js @@ -425,17 +425,7 @@ var TweenChain = new Class({ } else if (!this.hasStarted) { - this.startDelay -= delta; - - if (this.startDelay <= 0) - { - this.hasStarted = true; - - this.dispatchEvent(Events.TWEEN_START, 'onStart'); - - // Reset the delta so we always start progress from zero - delta = 0; - } + delta = this.updateStartCountdown(delta); } var remove = false;