liorfrenkel Posted December 24, 2015 Share Posted December 24, 2015 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? thanksLior Link to comment Share on other sites More sharing options...
icp Posted December 24, 2015 Share Posted December 24, 2015 Use this in your update loop and see how it behaves:console.log(this.game.tweens.getAll().length);Short answer: yes, is it destroyed automatically. Link to comment Share on other sites More sharing options...
liorfrenkel Posted December 24, 2015 Author Share Posted December 24, 2015 got it! thanks icp! Link to comment Share on other sites More sharing options...
Recommended Posts