Major Problem/Confusion About Saving/Loading Attributes
jonbeebe
Member Posts: 49
Hello everyone. All was well, until I noticed something VERY strange. So there's either something majorly wrong with the way I built my latest two apps, or there's something I don't fully understand about saving/loading attributes.
I completed my first two games, and both games happen to use a Save Key called 'highscore' to store the highest score that is achieved in the game.
I completed both games and made the .app and installed using iTunes just as it says in the guides and everything worked great. The apps were installed, and I was able to play. However, I started noticing that whenever I achieve a new high score in one game, it overwrites and displays that SAME high score in the other game!
My question is, does the Save Key have to be completely unique globally or other apps/games will access/use/overwrite/load the same keys? I had thought that the keys were app-specific, so as long as no other attribute was using the key in that SAME APP that everything would be fine, but apparently I'm wrong.
If keys aren't supposed to be accessd globally between apps, then I would very much appreciate it if someone could shed some light as to why my highscore attribute is being shared between two SEPARATE games.
NOTE: It's worth mentioning that although these are two completely separate games, I built the second game using a copy of the first game to use as a template. Could that be why things are being shared?
I'm very confused right now, please help. Thanks in advance!
I completed my first two games, and both games happen to use a Save Key called 'highscore' to store the highest score that is achieved in the game.
I completed both games and made the .app and installed using iTunes just as it says in the guides and everything worked great. The apps were installed, and I was able to play. However, I started noticing that whenever I achieve a new high score in one game, it overwrites and displays that SAME high score in the other game!
My question is, does the Save Key have to be completely unique globally or other apps/games will access/use/overwrite/load the same keys? I had thought that the keys were app-specific, so as long as no other attribute was using the key in that SAME APP that everything would be fine, but apparently I'm wrong.
If keys aren't supposed to be accessd globally between apps, then I would very much appreciate it if someone could shed some light as to why my highscore attribute is being shared between two SEPARATE games.
NOTE: It's worth mentioning that although these are two completely separate games, I built the second game using a copy of the first game to use as a template. Could that be why things are being shared?
I'm very confused right now, please help. Thanks in advance!
Comments
_______________
Nesen Probe http://itunes.apple.com/us/app/nesen-probe/id377766693?mt=8
Tickle Stones http://itunes.apple.com/us/app/tickle-stones/id363484260?mt=8
Food Fight! (free) http://itunes.apple.com/us/app/food-fight/id352646643?mt=8
Just in case, I'm going to start using my game name in my save keys from now on.