Going to the next scene when there are no enemies on screen (Alien Approach)

Hello. I am making a Space Invaders clone. How do you make the game automatically go to the next level when there aren't any aliens on-screen?

CRAZYSTENCYLDAWG 2021

Luyren

  • *
  • Posts: 2802
http://www.stencyl.com/help/viewArticle/184
This has the basic idea. From your screenshot, if your "Enemies" attribute already has the amount of enemies defeated set correctly, place that code in the update event, with a boolean check to only execute it once.

Alternatively, use the "when attribute becomes 0" event, configuring it with the appropriate values.
My Stencyl resources are available here: https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.