Game over attribute
ichooicedanotherbrodamncmon!!1
Member Posts: 22
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
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
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