Creating an explosion
What kind of a game doesn't have any explosions? Well, I'm sure there are some out there, but do you really want to play them? I doubt it* and that's why we're going to learn a little bit about GameMaker's particle systems by creating explosions. This will be much more coding-intensive than our previous forays into particles but, once we're done, you'll have plenty to play around with. GameMaker's particle systems and particle emitters can make some pretty interesting effects that add a lot of polish with just a little effort.
*I don't actually doubt it but just go with it.
Getting ready
We're going to start from scratch for this recipe. Due to the colors we'll be using and the nature of the recipe, I recommend that you change the background color of the room that you set to black. You'll also need two objects: obj_control
(our controller object) and obj_partEmit_exp
(our particle emitter object). Place an instance of obj_control
in the room.
How to do it...
In
obj_control...