Question about changing the name of an attribute that gets saved.

design219design219 Member Posts: 2,273
edited November -1 in Working with GS (Mac)
The question is when you change the name of an attribute that is periodically saved, will it start saving and loading as a new attribute? The reason I'm not sure is that when you change an attributes name in GameSalad, it changes the name everywhere it's used. This is a great feature to keep from getting things screwed up, but I I'm not sure how that works on the device storage of the attribute. I would assume it would be as a new attribute.

I'm doing another update and I have a counter attribute that counts how often the menu scene is visited. After the count reaches certain numbers (8, 24, 60, 100) I have a button that pops up and asks if the player would like to rate the game on the app store. Obviously, this has a link the the game on the app store. If they ever push the button, it add 100 to the count, saves it, and after a .2 sec delay activates the link, and they should not see the rate button again.

With this update, I am changing the graphic to say "would you like to rate this version 1.8", so people who have updated will have the count reset from previous versions and get the message.

I'd like to just change the attribute name and it all work.

Comments

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    I think if you change the key name of the attribute it will prob reset itself and setup your load attribute to pull the new key instead of the old. I had a game that I screwed up and forgot to reset the level unlocks back to 0 so the first download all the levels where unlocked. unfortunately as soon as they played a level and the attribute saved as a key it saved it as though all levels were unlocked. So when I fixed the attribute back to zero using the same key all of those first downloads never got reset. But I would guess if I had changed the key it would have reset it.
  • design219design219 Member Posts: 2,273
    Thanks tenrdrmer, I should have considered the key. I'm sure you are right about that being a fix.
Sign In or Register to comment.