[2005] C# Direct3D 9.0 Exploding Animation
Hello. What would you guys.. or girls? reccomend for an exploding animation such as when a ship blows up in those old galaga games and such.
Currently the ship is a sprite in an ArrayList and when it touches a bullet it JUST dissapears. I would prefer it if it would also SPLODE!
So yea if any of you have some good tutorials on this kind of thing or could reccomend some classes to use that'd be great. Btw, I'm trying to keep the code to a minimal and perhaps may use a Sprite Sheet/Texture Map.
Thanks for any help given whatsoever.
Re: [2005] C# Direct3D 9.0 Exploding Animation
Is your game 2D or 3D? (I couldn't tell exactly from your post). If it is 2D, one way would be to make an animated explosion and draw that when the bullet hits it, and start the animation. I believe that the code for this is really easy (I have never used one before).
If it is 3D, a good, but somewhat time consuming way, would be to make a particle system for the explosion. I found this link (among many from a quick google) http://www.geocities.com/foetsch/par.../particles.htm for particle engines. You would have to make each particle travel radially out word from the centre of the explosion position. This can also work in 2D but an animated explosion as a sprite would be much easier.
Re: [2005] C# Direct3D 9.0 Exploding Animation
Re: [2005] C# Direct3D 9.0 Exploding Animation
Then all you need to do is store the UV Coordinates for each frame of the animation and then go through them when you render the 'billboard'. If you do understand texture coordinates, ask me or google it.