4ucai Posted September 20, 2013 Share Posted September 20, 2013 Hi guys, Is chaining tomethods possible like game.add.tween(ship).to({ angle: 90 }, 500, Phaser.Easing.Linear.None) .to({ x: 800 }, 4000, Phaser.Easing.Quadratic.InOut) .to({ y: 300 }, 4000, Phaser.Easing.Quadratic.InOut);or maybe future support? Link to comment Share on other sites More sharing options...
powerfear Posted September 20, 2013 Share Posted September 20, 2013 Seems like chaining is possible with .chain, Rich replied with an answer that explain chaining in this thread http://www.html5gamedevs.com/topic/1370-tweens-inside-of-classes/var tween1 = game.add.tween(blah);var tween2 = game.add.tween(part2 of the effect);var tween3 = game.add.tween(part3 of the effect);tween1.chain(tween2);tween2.chain(tween3);tween1.start(); Link to comment Share on other sites More sharing options...
4ucai Posted September 20, 2013 Author Share Posted September 20, 2013 Hi powerfear, Yes, I saw the method. I guess I wanted the feel of of createjs of chaining tween as more natural to me. Link to comment Share on other sites More sharing options...
powerfear Posted September 20, 2013 Share Posted September 20, 2013 I made the change to allow what you want: https://github.com/photonstorm/phaser/pull/61 It might get added to the main repository soon if it's accepted. RestingCoder 1 Link to comment Share on other sites More sharing options...
4ucai Posted September 21, 2013 Author Share Posted September 21, 2013 awesome Link to comment Share on other sites More sharing options...
rich Posted September 23, 2013 Share Posted September 23, 2013 It was definitely accepted and will be in 1.0.6 4ucai, RestingCoder and in mono 3 Link to comment Share on other sites More sharing options...
Recommended Posts