|
-
Apr 20th, 2007, 11:03 PM
#1
Thread Starter
Frenzied Member
[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.
-
Apr 21st, 2007, 02:31 PM
#2
Lively Member
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.
-
Apr 23rd, 2007, 06:55 PM
#3
Thread Starter
Frenzied Member
Re: [2005] C# Direct3D 9.0 Exploding Animation
-
Apr 24th, 2007, 05:30 AM
#4
Hyperactive Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|