© 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_6

6. Objects and Events

Ben Tyers1  
(1)
Worthing, West Sussex, UK
 
Objects are the lifeblood of GameMaker. Your game will consist of lots of objects that will interact with each other and make things happen accordingly.
  • You will use objects for such things as:

  • Making players and enemies move and interact

  • For placing and executing code

  • Checking and changing variables to make things happen

  • Collision detection

  • Processing mouse and keyboard input

  • Drawing variables and sprites

  • Creating sound effects and playing music

Objects will generally consist of several events. Code is placed in these events to ...

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.