End Level issue

wmgeichwmgeich Member, PRO Posts: 28
edited November -1 in Working with GS (Mac)
So if User completes level by destroying all actors...user goes to next level. But if User doesn't complete level by time limit...game over or replay. Is there a way to place conditions on level so depending on whether or not the user completed the level or didn't the appropriate actions take place? (game over or next level) This falls into an if/then statement but I can't seem to work it out with rules and behaviors in GameSalad. Help!

Comments

  • wmgeichwmgeich Member, PRO Posts: 28
    I saw that video but I need there to be two directions available at the end of each level. All actors gone within time limit = go to next level, if not then game over. I'd like a display text to show whichever applies and then either a next level spawned or a game over spawned depending on outcome of level.
  • bluebyu25bluebyu25 Member Posts: 500
    Make game.nextlevel attribute. Make it an integer value. When your game actor is touched then add to game.nextlevel. When game.nextlevel = whatever you want then make a rule that changes scene to next level in your game. For "losing" your game, just make a rule that says if after certain time game.nextlevel doesnt not equal whatever it needs to pass, then reset scene
Sign In or Register to comment.