Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Explosion effect, looks good now, but needs some spezazz!

Author
Message
Major Payn
21
Years of Service
User Offline
Joined: 16th Dec 2003
Location: United States of America
Posted: 24th Jan 2005 04:39
Hello, I have the following code to make what looks like a large shockwave for a nuclear explosion effect.....



Now, it looks ok and everything, but it needs some spezazz! I mean some cool particles sounds or something, I tried adding a play sound command into the above code, but it just kept playing over and over again. Any ideas on how to add a bunch of particles that will fly out from the center of the explosion in a sort of radial manner? It is a space game, so I don't need the particles to fall to the ground, I just need them to move out from the explosion and fade away. I also am having problems with the sound, as I said above, when I try to play the sound in that subroutine, it just keeps playing over and over again, even when the subrouting shouldn't be called, it also messes up the explosion effect, as it causes it to start and stop abruptly.

My first attempt at particles, was to create a bunch of ghosted plains, point them in random directions, and then tell them to move in the subroutine above, however they would not move very far if any,and just sort of sat there all in a little area. I was also wondering how you can load a spite sheet, and animate it on a plain, so that you could actually see a fireball in the center of the shockwave!

I know that is alot of questions, but I want to make my game as good as I can, I'n not asking for a bunch of code, however I am looking for an example of how to do the above, so here is a list of the things I'm trying to accomplish...

1) particles that radiate out from the center of the explosion.
2) and explosion sound that plays when the explosion occurs.
3) an animated 2D explosion effect, loaded from a sprite sheet, that plays on a plain in the center of the explosion effect.

Well thats all for now, thanks.

Guns arn't the problem, people are the problem, shoot all the people and guns arn't a problem anymore.
TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 25th Jan 2005 02:56
If you use a sprite sheet then you'd still have to cut the image up into several images. Particles are pretty easy. There is a good explosion in the examples that come with DB.

Major Payn
21
Years of Service
User Offline
Joined: 16th Dec 2003
Location: United States of America
Posted: 25th Jan 2005 06:04
Yeah, but those examples are so over complicated that it makes me gag, I mean half the stuff in there could have been done with the simplist of commands.

So how do I cut the image up into it's individual pieces, and then animate them on a ghosted plain?

And I still have a few other questions above, that need answering.

Thanks.

Guns arn't the problem, people are the problem, shoot all the people and guns arn't a problem anymore.
NanoBrain
20
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Portland, OR
Posted: 26th Jan 2005 01:42
I'll start with need # 3, since it's the easiest. There are two options for you here, choosing which one you think is most efficient. (1.)Make a bitmap sprite sheet in an external image editing program. In DB use this code
, at the start of your program or in a loading scene for the level, to cut up the sheet into seperate images for the animation sequence.
I have to go to work now, but this code will seperate the sheet into individual images that you can then code to place on a plain in 3d space and animate. I will continue on this post when I have the next chance.

+NanoBrain+
Major Payn
21
Years of Service
User Offline
Joined: 16th Dec 2003
Location: United States of America
Posted: 26th Jan 2005 11:06
Thanks, but how would I animate it now?

And what about 2 adn 3?

Thanks!

Guns arn't the problem, people are the problem, shoot all the people and guns arn't a problem anymore.
Major Payn
21
Years of Service
User Offline
Joined: 16th Dec 2003
Location: United States of America
Posted: 27th Jan 2005 10:48
Bumpy , na I just wanna give people more of a chance to read the post, and ponder possible suggestians and ideas for a cool explosion.

Guns arn't the problem, people are the problem, shoot all the people and guns arn't a problem anymore.
Major Payn
21
Years of Service
User Offline
Joined: 16th Dec 2003
Location: United States of America
Posted: 29th Jan 2005 05:58
Bumpy

Guns arn't the problem, people are the problem, shoot all the people and guns arn't a problem anymore.

Login to post a reply

Server time is: 2025-05-24 03:28:01
Your offset time is: 2025-05-24 03:28:01