Jump to content

onComplete multiple Tweens


ckuron
 Share

Recommended Posts

Hi,

I'm creating multiple tweens :

  • tween1 on sprite1 going from y(0) to y(10), +10
  • tween2 on sprite2 going from y(50) to y(30), -20
  • tween3 on sprite3 going from x(10) to x(50), +40
I would like to know if it is possible to add an onComplete event after all tweens are done? I can't use chaining cause I want all tweens to run together, at the same speed.

Of course I know the third tween is the last, so I can add the onComplete event on it, but is it a good practice? Do I have a better option?

Thank you for your advice.

Geat work with Phaser by the way :)

I bought the Interphase book for support, not finished yet, but great book.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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