updatestage Posted December 20, 2014 Share Posted December 20, 2014 Hi there, I have a problem with the yoyo function. I want to create a tween with more than one movment and yoyo this. I tried following ways:var sp = this.add.sprite(100,100,"btn");var tween = this.add.tween(sp);tween .to({x:200}, 500) .to({y:200}, 500);tween.yoyo(true).start();andvar sp = this.add.sprite(100,100,"btn");var tween = this.add.tween(sp).to({x:200});var tween2 = this.add.tween(sp).to({y:200});tween.chain(tween2);tween.yoyo(true).start();But it doesn't "yoyo" the complete animation. How can I do this? Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts