Jump to content

Should I explicitly destroy one-time tweens


liorfrenkel
 Share

Recommended Posts

Hi

 

I was wondering if I should explicitly destroy all the tweens that I create?

I am moving objects on screen every few seconds with one time tweens like so:

this.state.add.tween(child).to({ y: prevY + this.blockHeight }, 300, Phaser.Easing.Quadratic.In, true)

is it destroyed automatically after the tween is completed or should I destroy it?

 

thanks

Lior

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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