Hey all,
I'm currently working on a missile command re-make and have just about come to a nice point on the main engine to start thinking about using models and backgrounds instead of just spheres and cones etc. Obviously being missile command there's going to be loads of explosions and I need your help deciding how to get this to work. I spent some time (well all of 30 seconds) messing about just to see if it could be coded and I did come up with something which could be improved upon but I'm ure there's an easier way then code (by the way here's my explosion no media needed but truest me, don't expect anything good it was just a little test.)
explode=0
x_scale=100
y_scale=100
z_scale=100
make object sphere 1,5
color object 1,rgb (0,255,0)
do
if upkey()=1 then explode=1
if explode=1
color object 1,rgb (255,91,15)
scale object 1,x_scale,y_scale,z_scale
x_scale=x_scale+3
y_scale=y_scale+3
z_scale=z_scale+3
endif
if x_scale>500 then hide object 1
text 10,10, "press the upkey to start the explosion"
position camera 0,0,-200
point camera 0,0,0
loop
As you can see that ain't exactly breathtaking and might even chew up some program juice(slow the program down.) I was just wondering what you people think would be the best method for adding explosions to my game. Textured plain, animated model, what???
Thanks for reading.
WAS DOING AN FPS BUT RAN AWAY AND STARTED ON MISSILE COMMAND INSTEAD.