TOUR
PRICING
HELP
Stencylpedia
Blocks Guide
Sample Games
Developer Center
FORUMS
CHAT
#MADEINSTENCYL
EDUCATION
SIGN IN
×
Welcome back!
Username or E-mail
Password
(
Forgot?
)
C
OMMUNITY
Home
Issue Tracker
Inbox [0]
New Posts
New Replies
Search
Stencyl Community
→
Stencyl
→
Ask a Question
→
Going to the next scene when there are no enemies on screen (Alien Approach)
Pages:
1
Going to the next scene when there are no enemies on screen (Alien Approach)
CrazyStencylDawg
Posts: 37
January 24, 2021, 10:13:52 am
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
January 24, 2021, 10:42:03 am
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.
Pages:
1