High Score Issue

cbowers428cbowers428 Member Posts: 176
edited November -1 in Working with GS (Mac)
Hey I have a high score system and for some reason after name input it will put up the name where it should go in the rank of 1-5 top high scores, but the score doesn't show until you go to the main menu then back to the scores. Anyone have any ideas as to whats going on? thanks

Comments

  • cbowers428cbowers428 Member Posts: 176
    yea tru thanks
  • cbowers428cbowers428 Member Posts: 176
    that didnt seem to be the issue, any other suggestions?
  • osucowboy18osucowboy18 Member Posts: 1,307
    For all of my high scores, I have an attribute which holds the value of each score. Anytime the score is changed, I call the "Change Attribute" behavior and then I save the new value by using the "Save Attribute" behavior. I have actors that simply display each high score in their appropriate position in their appropriate scene. As far as loading goes, I have an actor called "Load Data", which I placed in my loading scene (the one I created after the GS loading scene). The Load Data actor uses the "Load Attribute" behavior to import all the saved values into their appropriate attributes, which are then displayed to the user in the appropriate scene. My advice is to have one actor, Load Data, in my example, which when the app is launched loads all saved data into the appropriate attribute. However, make sure that anytime the score changes, you use the "Change Attribute" behavior to change the value of the score, and then save the value by using the "Save Attribute" behavior. Hope this helps.

    - Alex
Sign In or Register to comment.