I've started a game where the goal is to clear out all the spawning enemies on each level/scene. Once all the enemies have spawned and have been destroyed, this would then trigger the next scene. Rinse & repeat for multiple levels/scenes. I've come across a couple of older threads on how to do this in BB2, but am unsure how to accomplish this in BB3. I've thought about using the delay node to spawn a specific enemy for last which could trigger the next scene with an "If Collide" node, but the problem with this is there is high potential for the player to destroy this enemy before all the other enemies have been cleared. I would like to be able to clear the enemies in any order, and using this delay option to make sure there is a specific last enemy to be cleared really ruins the flow of the gameplay IMO. Any ideas?
I think you could use a global counter node. Each time an enemy is destroyed it will trigger the counter. Once the counter reaches a certain number you could trigger an event observer.