Save attribute from another scene
Iam having problems resetting a highscore from another scene.
I have an "highscore scene" which displays all my highscores - with an option to reset my highscores which essentially is attributes in "the play scene".
Once i "clear" my highscore and re-enter the scene its not reset because i can't save from a different scene
Hope some one can help me
I have an "highscore scene" which displays all my highscores - with an option to reset my highscores which essentially is attributes in "the play scene".
Once i "clear" my highscore and re-enter the scene its not reset because i can't save from a different scene
Hope some one can help me
![:) :)](http://forums.gamesalad.com/plugins/emojiextender/emoji/twitter/smile.png)
Best Answer
-
jonmulcahy Posts: 10,408
Attributesare global, it doesn't matter what scene you are in. Can you post screenshots of your code?
Answers
As stated in my original post The problem is not simply to change an attribute to 0.
The problem is that i want to be able to save an attribute from a different scene.
Meaning:
Scene A (play scene) contains the attributes and saves high scores
Scene B (high score scene) display high scores - with a reset button thats suppose to reset high scores and save them to 0 after reset.
But since the actual attributes is located in Scene A i cannot save them from Scene B?
what to do?