codevinsky Posted March 4, 2014 Share Posted March 4, 2014 I'm trying to animate a group:game.add.tween(this.titleGroup).to({y:15 }, 250, Phaser.Easing.Linear.None, true, 0, true, true);The group animates correctly once, but does not yoyo and does not loop. I don't know if this is an error in syntax or a library bug. Thoughts? Link to comment Share on other sites More sharing options...
rich Posted March 4, 2014 Share Posted March 4, 2014 Pretty sure it's because you've set the tween to repeat, but given it a repeat count of 'true' which I imagine will evaluate to once. Signature: (properties, duration, ease, autoStart, delay, repeat, yoyo) Link to comment Share on other sites More sharing options...
codevinsky Posted March 4, 2014 Author Share Posted March 4, 2014 How do I tell it to repeat ad infinitum? Link to comment Share on other sites More sharing options...
codevinsky Posted March 4, 2014 Author Share Posted March 4, 2014 I modified my tween thusly: game.add.tween(this.titleGroup).to({y:15 }, 250, Phaser.Easing.Linear.None).loop(true).yoyo(true).start(); It still only performs the animation once. Link to comment Share on other sites More sharing options...
codevinsky Posted March 4, 2014 Author Share Posted March 4, 2014 Never mind:I see "TweenGroup.js" currently in dev in the 1.2 branch. Link to comment Share on other sites More sharing options...
Recommended Posts