How do I restart the game score and rules when starting a new level?

ucjumr2ucjumr2 Member, PRO Posts: 6

In my game, players must reach a score of 8 out of 10 before the timer runs out to move on to the next level. In my game, there is a short transition scene where the player can click to move on to the next level. Once the next level is reached, the score isn't starting over. Additionally, a rule I have which works in level 1, isn't working in level 2. How do I keep rules consistent across levels?

Comments

  • bob loblawbob loblaw Member, PRO Posts: 793

    use a controller actor that’s hidden off screen, and placed on the lowest layer of your scene.
    any variable you need to reset, like the score, should be done with a behaviour in that actor (ie. change game.score to 0)

Sign In or Register to comment.