threedollarbill Posted April 17, 2018 Share Posted April 17, 2018 Let's say I start a tween like this: // create sprite let mySprite:Phaser.Sprite = this.create(300, 50, "my_atlas", "bee"); // tween sprite let yTween:Phaser.Tween = this.game.make.tween(mySprite); yTween.to({y: 150}, 1500, Phaser.Easing.Linear.None, false, 0, 999, true); yTween.start(); Does calling "destroy" on the sprite also destroy it's tween? Or will the tween be silently running in the background until it runs 999 times? // destroy sprite (will this also kill the tween and remove it from memory?) mySprite.destroy(true); Link to comment Share on other sites More sharing options...
pdiddles03 Posted April 17, 2018 Share Posted April 17, 2018 As far as i know...yes Link to comment Share on other sites More sharing options...
samme Posted April 18, 2018 Share Posted April 18, 2018 I don't think so. Probably you should remove it yourself. Link to comment Share on other sites More sharing options...
Recommended Posts