Waves of enemies with a spawner
By the end you will have a spawner that sends slimes, a wave counter, and faster waves as time goes on.
What you need
The Counter and Change how often are Advanced. Switch to Advanced mode.
| Hero | Hero from the library, on a floor of Grass tiles. |
|---|---|
| Slime | Slime from the library. It patrols by itself. Tick Falls with gravity. |
| Spawner | + Add object โ New โ Spawner. Makes: Slime. Every (seconds): 3. Wander across: 200. Untick Starts making things straight away. Name it Slime Maker. |
| Counter | + Add object โ New โ Counter. Starts at 1. Label in front: Wave . Name it Wave. |
| Sounds | Hit and Power up. |

Build it
- Put the Slime Maker above the floor, in the middle. It is invisible while playing. Slimes drop from there and wander up to 200 pixels either way.
- Events tab โ + New event โ ๐ฌ Game โ Start of level. In Slime Maker choose Start spawning.
- + New event โ โฑ Timer โ Every, 20000 thousandths of a second. That is every 20 seconds.
- In Wave choose Add to the counter, 1. In Slime Maker choose Change how often, Every (seconds) 1. Play Power up.
- + New event โ Hero โ Collides with another object โ Slime. + andโฆ โ Hero โ Is falling. Do Destroy Slime, Jump Hero 40, Add to score 10, play Hit.
- Right-click that row โ Duplicate. On the copy, make Is falling the opposite with NOT. Change the actions to Subtract lives 1 and Flash (blink) Hero.
- Press โถ Play level. Survive the first wave. Twenty seconds in, wave 2 comes faster.
WhenStart of level
DoSlime Maker starts making things
WhenEvery 20000 ms
DoAdd 1 to WaveSlime Maker makes one every 1 secondsPlay sound Power up
WhenHero collides with SlimeHero is falling
DoDestroy SlimeMake Hero jump with strength 40Add 10 to scorePlay sound Hit
Make it yours
- A rest between waves: Every 20000 โ Stop spawning, and a second timer 5 seconds later โ Start spawning.
- Different enemies per wave: a second spawner for Bat. Compare counter Wave โฅ at least 3 โ Bat Maker Start spawning.
- Win: Compare counter Wave = equal to 5 โ Next level.