Hello, I have the following code to make what looks like a large shockwave for a nuclear explosion effect.....
nukeboom:
if explode<2000 and explode2<1000
position object explosion,object position x(nuke), object position y(nuke), object position z(nuke)
position object explosion2,object position x(nuke), object position y(nuke), object position z(nuke)
show object explosion
show object explosion2
explode=explode+15
scale object explosion,explode,explode,explode
explde2=explde2+5
scale object explosion2,explode2,explode2,explode2
else
position object explosion,10000,10000,10000
position object explosion2,10000,10000,10000
endif
return
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.