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 ?

Best Answer

  • tatiangtatiang Posts: 11,949
    Accepted Answer
    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

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

Answers

Sign In or Register to comment.