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.

HeroHero from the library, on a floor of Grass tiles.
SlimeSlime 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.
SoundsHit and Power up.
NutHouse
The Spawner settings: Makes, Every, Wander across, Wander down

Build it

  1. 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.
  2. Events tab โ†’ + New event โ†’ ๐ŸŽฌ Game โ†’ Start of level. In Slime Maker choose Start spawning.
  3. + New event โ†’ โฑ Timer โ†’ Every, 20000 thousandths of a second. That is every 20 seconds.
  4. In Wave choose Add to the counter, 1. In Slime Maker choose Change how often, Every (seconds) 1. Play Power up.
  5. + New event โ†’ Hero โ†’ Collides with another object โ†’ Slime. + andโ€ฆ โ†’ Hero โ†’ Is falling. Do Destroy Slime, Jump Hero 40, Add to score 10, play Hit.
  6. 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.
  7. 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.

Still stuck?

Try the Chocobreak tutorial, open a sample game and read its rules, or look at the questions people ask.