Simple Effects

Here you can find the functions and constants for the built in particle system.

The easiest way of creating particles in your game with GameMaker: Studio is to use the in-built effects mechanism. There effects are created using an internal particle system which is basically a very fast method for drawing graphical effects only and as such you do not have to worry about all the details (like memory management) when using these functions. You simply specify the type of effect, the position where it must be created, the size you want it to be and finally, its colour then let GameMaker: Studio do all the work.

The following functions exists for creating the built in particle effects:

  1. effect_create_below
  2. effect_create_above
  3. effect_clear

There are also a number of different constants for each of the pre-defined effects that the above functions can use:

  1. ef_cloud
  2. ef_ellipse
  3. ef_explosion
  4. ef_firework
  5. ef_flare
  6. ef_rain
  7. ef_ring
  8. ef_smoke
  9. ef_smokeup
  10. ef_snow
  11. ef_spark
  12. ef_star

Even though these effects are limited in scope and customisation, they can still be used to create some simple, great effects with very little effort. For example by creating a small puff of grey smoke below a moving missile in each step, a pretty convincing smoke trail is created, so even when you are an expert in particles it pays to remember that these effects exists as they can still save you some time.


Back: Particles
© Copyright YoYo Games Ltd. 2018 All Rights Reserved