Question...

EagleoneEagleone Member Posts: 97
edited November -1 in Working with GS (Mac)
I've just about completed everything for the first level in my game, except I'm stuck on one thing...

Basically I have 10 actors on the ground which you are supposed to protect from incoming bombs. How do I make it so it goes to the next level once there are no more incoming bombs but there is at least one actor left on the ground?

I've done this before but no idea how I did it.

Any input is appreciated.

Thanks!

Comments

  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,881
    If you have two game-level attributes called "numberOfBombs" and "numberOfBases" (or whatever), you could test for the following condition:

    when (all)
    numberOfBombs = 0
    numberOfBases > 0
    ----go to next level
    otherwise
    ----????
  • EagleoneEagleone Member Posts: 97
    Great, thank you very much. Will give that a go when I get home.
Sign In or Register to comment.