Game over attribute

I created a global boolean attribute. The default value is false, in a situation it is being true (game over) and this time the game over scene comes. In game over scene when i click replay button the scene replays but the game over scene immediately comes back. So the attribute does again be true. If I go menu and select another scene, it is same. How can I fix this ?

Comments

  • MentalDonkeyGamesMentalDonkeyGames Member Posts: 1,276

    Not knowing anything about your project, i'd say you need to manually change all necessary attributes back to their default state when the restart button is pressed.

    Mental Donkey Games
    Website - Facebook - Twitter

  • JIGGSZ_ALEJANDROJIGGSZ_ALEJANDRO Member Posts: 1

    You have to set a rule when the replay button is clicked change the gameover back to false and change scene back to the game

Sign In or Register to comment.