i have an sprite that is instantiated with different frames , the issue i have is that i want to use another animation ( explosion animation ) that is in a different image strip, and i also have other 2 images for enemies, i would like to use the same explosion animation for all the sprites, i know i can add the explosion animation to every image strip ( ship, enemy1 and enemy2), but has different measures, i was wondering if there is a function or a way to set a new animation to an sprite, basically is to change the animation or frames of the current sprite i want to destroy ( or explode ) and make it invisible after animation end.
how do you handle that, without creating another sprite just for the explosion?