How Can I Transition To A New Scene Only When All Enemies Are Defeated?

Discussion in 'How Can I...?' started by Muspar, Oct 3, 2019.

  1. Muspar

    Muspar Boxer

    Joined:
    Sep 27, 2019
    Messages:
    9
    Likes Received:
    6
    How can I set it up so the player only transitions to a new scene when all enemies are cleared? I'm working on a game where the player is in a static environment with a # of enemy objects to remove, then I want them to move to the next scene with new enemies and a different layout. I'm thinking along the lines of the old Double Dragon/Streets of Rage type games where the player enters Stage 1, fights all the dudes, then moves to Stage 2 only when all of the enemies in Stage 1 are defeated.

    Or is this something that I would need to upgrade my subscription and create new worlds for?
     
  2. Muspar

    Muspar Boxer

    Joined:
    Sep 27, 2019
    Messages:
    9
    Likes Received:
    6
    More generally, how can I set a trigger to occur when all enemies are defeated? My guess is I'd need to use something like Send actions that are triggered when an enemy is defeated/removed, and then have a Receive action hooked up to a Threshold set to the # of enemies in the scene, and then have the threshold set to trigger the desired action but I'd be curious if there's an easier way.
     

Share This Page