Save attribute from another scene

BrynjeBamsenBrynjeBamsen Member Posts: 188
edited June 2012 in Working with GS (Mac)
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 :)

Best Answer

Answers

  • HapiappsHapiapps Member Posts: 373
    Are you using tables or attribute as a high score chart?
  • BrynjeBamsenBrynjeBamsen Member Posts: 188
    attributes - Don't want to upgrade just yet, so don't have re-writeable tables
  • HapiappsHapiapps Member Posts: 373
    Writable tables are free. Anyways, when you want to reset, what are you doing? Can't you just change attribute > Score to 0?
  • BrynjeBamsenBrynjeBamsen Member Posts: 188
    I am well aware that table are free - But the latest release is filled with bugs and i would like for them to be solved before proceeding with it.

    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?
  • HapiappsHapiapps Member Posts: 373
    Are they local attributes or global attributes since those can be saved from anywhere?
Sign In or Register to comment.