Results 1 to 4 of 4

Thread: [2005] C# Direct3D 9.0 Exploding Animation

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Mar 2006
    Location
    Pennsylvania
    Posts
    1,069

    [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.

  2. #2
    Lively Member
    Join Date
    Jul 2002
    Posts
    86

    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.

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Mar 2006
    Location
    Pennsylvania
    Posts
    1,069

    Re: [2005] C# Direct3D 9.0 Exploding Animation

    It is 2D, yes, sorry.

  4. #4
    Hyperactive Member singularis's Avatar
    Join Date
    Nov 2006
    Location
    Over There!
    Posts
    372

    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.
    If what I said was helpful, give me rep!

    My Complete Games: -- 2D Zone (Space Shooter game) || _2D Zone 2_ || Ninja Blob (2D platformer) || Dren (Co-op up to 4 player base defence game)

    My Projects: -- The Dread Engine (2D VB game Engine) || A* Path Finding


    An excellent site for learning DirectX7, 8 & 9 (for VB6, C# & VB.net) would be: directx4vb.vbgamer.com --- For my projects and games see: pieper.freehostia.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width