08.11.2012 Views

Designing Games with Game Maker - YoYo Games

Designing Games with Game Maker - YoYo Games

Designing Games with Game Maker - YoYo Games

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Particle systems are meant to create special effects. Particles are small elements, represented<br />

by a little sprite. Such particles move around according to predefined rules and can change<br />

size, orientation, color, etc. while they move. Many such particles together can create e.g.<br />

fireworks, flames, explosions, rain, snow, star fields, flying debris, etc.<br />

<strong>Game</strong> <strong>Maker</strong> contains an extensive particle system that can be used to create great effects.<br />

Because of its generality it is not simple to use so better read this section carefully before<br />

trying.<br />

If this is too complicated for you, there is also a very simple mechanism to create different<br />

types of explosions, smoke, rain, and even fireworks.<br />

Particle systems have many parameters and it is not always easy to understand how to create<br />

the effects you want. First of all there are particle types. A particle type defines a particular<br />

kind of particles. Such types have many parameters that describe the shape, size, color, and<br />

motion of the particles. Particle types need to be defined only once and can then be used<br />

everywhere in the game.<br />

Secondly there are particle systems. There can be different particle systems in the game. A<br />

particle system can have particles of the different types. A particle system has emitters that<br />

create the particles, either continuously or in bursts. It can also have attractors that attract<br />

particles. Finally, it can have destroyers that destroy particles. Once particles are created in a<br />

particle system, they are automatically handled (updated and drawn) by the system.<br />

Simple Effects<br />

The easiest way of creating particles is to use the effects mechanism. Effects are created using<br />

the particle system but you do not have to worry about all the details. You simply specify the<br />

type of effect, the position where it must be created, its size, and its color. That is all.<br />

There are a number of different kinds of effects:<br />

• ef_explosion<br />

• ef_ring<br />

• ef_ellipse<br />

• ef_firework<br />

• ef_smoke

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!