Chapter 7: Timers, Spawners & Time-Based Logic
In this chapter, you'll defend yourself against slimes that keep multiplying. Time is the third thing that makes events happen (after input and collisions), and the big idea is that a timer can run once or forever, can start other timers, and can be cancelled.
I'm still writing this chapter, step by step. In the meantime, you can play the finished game, and read the code and the assets that make it, so that you can run it and change it yourself.
Play the Game
The code that makes it:
The assets, which go in an assets folder next to the game: