Saving high score in my new app deletes when apps turned off. why?

slevslev Member Posts: 99
edited November -1 in Working with GS (Mac)
hi

the high score in my new app resets to 0 when the app is turned off... but stays saved when the app is left running in the background...

i have rule
game.current score > game.high score

change attribute
game.high score TO game.current score

save attribute
game.high score Key: high

any ideas ??

the game is here its free, not trying to plug it but youll be able to see the problem 1st hand
http://itunes.apple.com/gb/app/ru/id428160694?mt=8&ign-mpt=uo=4

cheers

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    i see your saving the highscore, but are you loading it at the start of the game?
  • slevslev Member Posts: 99
    ahhh ... how would i do that by putting a load attribute in the first scene of my game ?
    also how would i test if this works when you have it in the veiwer on your device can you save game data or dose it only work when its actualy an app
  • tim13211tim13211 Member Posts: 87
    you can put it any where in the scene that you need the score to load in. but i have found that the loading attribute does not work well in the actor (say the display score actor). you will also need to load the score in the scene that sets a new score.

    also loading/saving doesnt work in the simulator but it does in the GSViewer.

    Hope this helps!
  • JonatanRosdahlJonatanRosdahl Member Posts: 27
    Make an Ad Hoc build and try the highscore =)
Sign In or Register to comment.