how to finish a level automatically when all enemy actors destroyed ?
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,949
In 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
Answers
thank you are the best