Save Attribute Doesn't Survive Game Reset

prismprism Member Posts: 3
edited February 2012 in Working with GS (Mac)
Hello, I am fairly new to Gamesalad and very close to finishing my first game. I need my high score to save through a game reset. The attribute is labeled as game.best score. When my main actor dies, it sends the game into the Game Over screen which has a button that resets the game. When I reset the game, whatever score was being displayed as the high score was reset back to zero. So I put Save Attribute in the actor that displays the high score and created a separate actor that loads the attribute and that was put in the initial scene to load. I've switched many things around and also made sure each Key in Save and Load attribute matched. But after many attempts at trying different things, I never managed to correct and after every Game Reset, the score is zero. Can anyone tell me what went wrong?

Comments

  • PhiliePhilie PRO Posts: 240
    From what I know, I believe reset game will clear everything, hence the reset part. I believe reset scene works, but why not just have a button to start over, that brings you back to that scene, and have a rule that can reset all the attributes you need, like putting the score to 0. If you do that way, the high score won't be touched.
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    you'll have to reload the high score every time after you hit the game reset button for it to work.
  • prismprism Member Posts: 3
    Thanks guys. I've fixed it. I was told that save att. survives a game reset but apparently it doesn't for some reason now.
  • fstltnafstltna Member Posts: 96
    "save att" DOES survive a reset. You just need to make sure you are doing a "load att" before you get to where the high score should be displayed. Make sure you use the same key value for both save and load..
Sign In or Register to comment.