Posted By
|
Message
|
radel999
Registered 07/01/2012
Points 314
|
27th September, 2012 at 27/09/2012 20:40:27 -
Hello Guys this me again
im now search example for explosions generation how boss are killed
like Gradius 2 or Super C
n/a
|
Chloe Sagal under the influence of FUN
Registered 19/02/2009
Points 607
|
28th September, 2012 at 28/09/2012 02:33:20 -
perhaps create a value on the boss character for the amount of explosions you want, and one for a timer, initialize the timer to -1, and the explosion count to however many explosions you want to occur.
also, think about how large of an area you want to have explode, as in a square/rectangle and how many pixels this square/rectangle takes up.
when the boss is killed, simply set the timer to 0.
Obviously, the timer needs to count down, so that's simply if timer > 0 then subtract 1 from timer
Finally to actually make an explosion explosions, create an event that says if the timer is equal to 0 and explosion count is greater than 0. Then create an explosion, set it's X position to the X of the boss minus half of the width of your square/rectangle in parenthases, then add Random("entire with of your square") i.e. XPos = ( Xpos ( "boss" )-64 )+Random( 128 )
Do the same with the Y position, except with Y values and the length.
Then, in that same event, set that timer to whatever amount you want between explosions and subtract one from the amount of explosions you wanted.
And as an added touch, you can have an event that says if the explosion count is equal to zero, destroy the boss character, and if you want it to shoot out parts or something, simply start a loop for however many parts that fly out, create an event that says on that loop, create a part, and set it's initial trajectory, which is a whole 'nother post, perhaps you can figure out that part on your own?
hope it helps
Patreon: http://www.patreon.com/chloesagal
Twitter: https://twitter.com/ChloeSagal
|
radel999
Registered 07/01/2012
Points 314
|
28th September, 2012 at 28/09/2012 18:00:58 -
Looks nice
but i hope with example file
n/a
|
|
|