Change scene after all actors destroyed
Billyd1
Member Posts: 133
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.
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
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.