Saving Attribute won't work!

VoidedSkyVoidedSky Member Posts: 1,095
edited November -1 in Working with GS (Mac)
Hi, I am working on a game with high scores, and the saving and loading won't work. I have Save attribute Score 1 to ScoreOne, and Load attribute ScoreOne to Score 1. What am I doing wrong?
Thanks!
~CTM

Comments

  • design219design219 Member Posts: 2,273
    Are you setting the same word or code for the "key" in both save and load? They must match.
  • VoidedSkyVoidedSky Member Posts: 1,095
    Yes I am
  • design219design219 Member Posts: 2,273
    Well, I don't mean to presume you are missing steps, but you do have these attributes being triggered somehow, like on an actor in the first scene for load, and actor that saves score with either a timer or on a score results scene?
  • VoidedSkyVoidedSky Member Posts: 1,095
    They are just in the actors alone in a scene
  • design219design219 Member Posts: 2,273
    Maybe you should describe your whole setup, that may make it easier for someone to help you figure this out. ...Like how your score is counted, when it is saved, when it is loaded, etc.
  • design219design219 Member Posts: 2,273
    Yes, if they are both in the same scene, that could be your problem. You could be loading and then saving what you just loaded, which could set a loop that never captures your actual score.
  • CodeMonkeyCodeMonkey Head Chef, Member, PRO Posts: 1,803
    I've got a thought. Are you testing only on the Preview Player, or only the Scene Preview, or the Web Preview? Within a Preview Player or Scene Preview "session" it should work. It won't work on the web preview.

    In the descriptions of the load/save behaviors:
    "Note: This is for iPhone and Mac OS Desktop games only. It is not available for web games."
  • VoidedSkyVoidedSky Member Posts: 1,095
    Thanks!
    @design219, you were right!
    Thanks!
Sign In or Register to comment.