|Topic was automatically imported from the old Question2Answer platform.
Can anyone please help me how i can clear the data of a scene while exiting from the scene.
For example in the project there are 4 levels.when i enter a level 1 and exit the scene , the data such as score,health etc dosen’t go to default value when i open level 1 again.When the player dies in the level , the level ends but when i try to open level 1 again it dosen’t open , since the health has become 0.It goes to default value only when i exit the project and load it again .Then the level 1 will open and i get the same problem as above.
Any solutions for this problem. Please…
How do you “exit the scene”?
But you should store data like score or health outside of the level, i.e. in the Player node perhaps.
Dlean Jeans | 2019-02-08 15:40