Jump to content

chain tween


4ucai
 Share

Recommended Posts

Hi guys,

 

Is chaining 

to

methods 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

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

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...