Change scene after all actors destroyed

Billyd1Billyd1 Member Posts: 133
edited November -1 in Working with GS (Mac)
So I have actors in my scene that multiply when destroyed and finally ends up with 2 left. How would I make it so when the last actor is destroyed it changes scene.

I already used:

RULE: when overlaps with actor > change scene.

But the final 2 actors left are the same so if I destroy one there will be one left and it would have changed scene.

Hope you can understand what im trying to say, if not ill try to explain it abit better.

Comments

  • synthesissynthesis Member Posts: 1,693
    Implement a counter

    set a game attribute TotalActorsToDestroy
    Then in the actor routing...add a rule just before it is destroyed to subtract one from the total

    Add another actor in the scene that has a rule to check if the TotalActorsToDestroy=0 and if so...change scene.
  • Billyd1Billyd1 Member Posts: 133
    Thanks worked great.
Sign In or Register to comment.