Save & Load Issue

thomasrichardgamesthomasrichardgames Member Posts: 263
edited October 2012 in Working with GS (Mac)
Everyone time someone switches of their iPhone and then switches it back on, all the load scores are wiped from the game. what do i do to make sure that the unlocked levels remain unlocked when they switch their iphone off?

Comments

  • CluvCluv Member Posts: 229
    You need to make sure you are saving the attributes. Are you using tables and saving them as you go?
  • thomasrichardgamesthomasrichardgames Member Posts: 263
    Basically, i have a load attribute on the home screen, and a save attribute on the actual levels, but i do not have a load or save attribute on the level select screens. I have used the rule in the levels: when game score is higher than high score, change high score to game score, save highscore. On the home screen, i used the load attribute.
  • CluvCluv Member Posts: 229
    You are saving and loading with the same key, correct?

    Is there a reason why are you aren't using a table? I went ahead and used a table for all of my saved information because it keeps it all organized for me and I don't have to keep track of what I am saving where.
  • thomasrichardgamesthomasrichardgames Member Posts: 263
    Yeah - i'm loading & saving with same key. Table?
  • CluvCluv Member Posts: 229
    You can use tables to organize your data more efficiently, then call certain cells from your table, to get the information back. Let me see if I can throw together an example right quick.
  • thomasrichardgamesthomasrichardgames Member Posts: 263
    k. Thank You.
  • CluvCluv Member Posts: 229
    TableTest

    Try this out. You can change the row of the table to save to a "different" player if you like. I hope it helps!

    Charlie
  • thomasrichardgamesthomasrichardgames Member Posts: 263
    Thanks.
Sign In or Register to comment.