I'm looking for some ideas on how to handle the following problem:
The attached sprite rotates around the center an each of the arms of the ship are actually separate sprites so they can be removed as the ship is damaged. The image size for the arms is the same as the entire image so that the arms appear as if the rotate around the central body of the ship.
My problem is how to get the location of the center of the disc at the end of the arm. I need to do this to show the explosion animation correctly.
A couple ideas I have are:
1)Constantly update the sprite shape since that apparently ignores the transparency and detect where the last missile hit then show the explosion there. This would be OK, but I'd rather get the center of the disc at the end of the arm.
2)This method will require more coding and will be problematic. I'd hard code in the location of each disc's center in relation to the animation frames. The discs are in an ellipse, so this is possible, but it will be a bit painful since there will be 30 frames and the entire ship will move about the screen. But it should be pretty accurate once I get the equations right.
So.... if anyone has any recommendations on how to handle something like this, I'd love to hear it.
Thanks!