Repeat and Yoyo combo work.

This commit is contained in:
Richard Davey 2017-05-17 04:54:40 +01:00
parent 6b66b855f5
commit 9f651da573
2 changed files with 4 additions and 2 deletions

View file

@ -1,4 +1,4 @@
var CHECKSUM = {
build: 'f8ca0120-3ab1-11e7-be5c-338bdccc3159'
build: '673b3ff0-3ab4-11e7-a771-cbff81527fed'
};
module.exports = CHECKSUM;

View file

@ -109,6 +109,7 @@ Tween.prototype = {
if (this.countdown <= 0)
{
// Refactor this, so we can use countdown for repeatDelay and onCompleteDelay as well
this.loadValues();
}
}
@ -128,6 +129,7 @@ Tween.prototype = {
return (this.state !== 5);
},
// Merge with Backwards and include in update?
forward: function (delta)
{
var elapsed = this.elapsed;
@ -185,7 +187,7 @@ Tween.prototype = {
this.elapsed = elapsed;
this.progress = progress;
if (progress === 0)
if (progress === 1)
{
// Tween has reached start
// Do we yoyo or repeat?