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

26. Timelines

Ben Tyers1  
(1)
Worthing, West Sussex, UK
 
Timelines are a great way to make something happen in a predefined order and at a certain time. You can set it up to execute any code you wish, hence you can make a multitude of actions happen when you wish. As the set up uses only a single asset, editing and changing it can be done quickly. You could use a timeline to
  • Spawn enemies at set times.

  • Create a sequence of effects.

  • Spawn health packs.

  • Fire a spread of bullets.

Creating a Timeline

You can create a Timeline in the same way you would any other asset, as shown in Figure 26-1

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.