© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2023
B. TyersGameMaker Fundamentalshttps://doi.org/10.1007/978-1-4842-8713-2_19

19. Effects

Ben Tyers1  
(1)
Worthing, West Sussex, UK
 
Graphical effects are important in most games. Whether it’s just a little sparkle effect or an explosion. Graphical effects can be done using sprites, built-in effects, or the Effects layers. The built-in effects allow for quick prototyping of a game, and can even be used in a finished project. Some examples would be
  • Visually showing the player that a button has been pressed.

  • Showing damage when hit by a bullet.

  • Explosion when an enemy dies.

Effects

A number of basic effects can be created with just one line of code, for example:
/// @description ...

Get GameMaker Fundamentals: Learn GML Programming to Start Making Amazing Games now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.