|
Explosions |
kdevil
Member #1,075
March 2001
|
Alright, I asked about this a couple months back, and I got a few replies, but I am still in need of the killer explosion. What I'm looking for here is how the frick to make a very cool-looking explosion that would be able to fill, say, half the screen when a boss goes kablooey. Some sample code or a link to a good explosion generator would be much appreciated, except that I CAN'T UNDERSTAND 'EGG' SCRIPTS AND MKEXPL DOESN'T WORK. Help help help help help help thank you. ----- |
Matt Smith
Member #783
November 2000
|
about six months ago I came up with a great plan involving a video camera and a bucket of petrol. . . but nobody tried it So the second best way would be to have about 100 fireballs all starting in one place, but with different random vectors so they 'explode' away. The fireballs can be simple sprites, but you can animate them and make them translucent if you want. |
23yrold3yrold
Member #1,134
March 2001
|
Just go apesh*t on the SFX. Big animated explosions sprites, particle engine, smoke FX .... All at the same time. Blow the player's mind! -- |
Zaphos
Member #1,468
August 2001
|
Have you looked at the fire generating sample that comes in the allegro examples. I bet that, if you could center that flame loosely at a point and make it spread out in a circle from there it would look pretty cool. Don't know how I'd do that, though. Yes, you could always draw huge transparent explosion animations and play them, but that seems a little ... wasteful. You do want 2D, right. Good. There's nothing wrong with the old expanding transparent layered-colorwise fire-colored rings, centered where the exlosion is and moving outwards. Sorry for the lack of actual sample code, but I thought it might help just to give some methods, seeing as I have no sample code for that right now.
|
Zaphos
Member #1,468
August 2001
|
This is a bit messy, sorry, but here is an example of the circle explosion method. It isn't great, but it might look better if you had a routine for making the circles look more like fire, probably do-able with the do_circle command (see the docs, drawing primitives). I apologize for the length and messy coding, I wrote this very quickly:
|
Zaphos
Member #1,468
August 2001
|
Oops, sorry, posted twice. [ August 27, 2001: Message edited by: Zaphos ]
|
kdevil
Member #1,075
March 2001
|
I appreciate the source code, but I've just found a file called GUI4EGG, which makes the whole EGG script thing a lot easier to do. Granted, I had to update my 3.12 allegro to the latest WIP to get the thing to install, but I think it'll be worth the trouble. Thanks for all your help guys . ----- |
Johnny13
Member #805
October 2000
|
a tunnel? Alg3D Praise my Games!!<code>#define SPAMMER (post>=666&&postperday>=6)</code><Mr.spellcaster>What post? <Mr.spellcaster>A useful post by me. |
madkatt
Member #634
September 2000
|
Nice routine zaphos. |
Bruce Perry
Member #270
April 2000
|
I created a nice-looking particle explosion for Set Up Us The Bomb !!!, our entry into The Allegro Team Competition. I somehow managed to splat most of the makefiles just before release , so you can compile it with the following: -- |
Bruce Perry
Member #270
April 2000
|
-- |
|