@efares wrote:
I have a physics sprite that I want to remove from it's parent AFTER I run some animation on it.
So this is what I have:this.object.sprite.runAction(this.animateExplosion); this.object.removeFromParent();
What is the best way to delay the removeFromParent line until the runAction animation is done running (going through all the frames) which is less than a second. Should I use sequence? Should I use setTimeout? Use something else?
Posts: 3
Participants: 2