how to finish a level automatically when all enemy actors destroyed ?
arabianwolf
Member, PRO Posts: 79
hi ,
I have problem with finishing level when the player destroy all the enemy ufo actors
any idea ?
I have problem with finishing level when the player destroy all the enemy ufo actors
any idea ?
Best Answer
-
tatiang Posts: 11,949In the ufo actor:
change attribute game.ufoCount to game.ufoCount+1
when collide with bullet --> change attribute game.ufoCount to game.ufoCount-1.
In a level check actor:
Timer after 0.1 seconds (this part is important so that the level doesn't finish right when it starts) --> when attribute game.ufoCount=0 --> change scene
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Answers
thank you are the best