Jump to content

complete tween right away


Yehuda Katz
 Share

Recommended Posts

Hello,

Imagine the scenario when we animate object (scale) during 3 sec. Animation is awesome but if user interacted with game, we need to complete animation right away and start new. Is there any way to force tween to complete? Currently I am doing following

this.progress_tween.stop();
for (var key in this.progress_tween.properties)
  this.progress_tween.target[key] = this.progress_tween.properties[key];
this.progress_tween.onComplete.dispatch();

Thanks in advance

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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