problems with saving ingame cash

in my game you can earn money but whenever i force quit (swipe up) the app on my iphone and go back in it doesnt save the money. how do i fix that, i tried with a save table but i might have done it wrong.

Comments

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922

    Show us your code. What you explain tells us nothing to be able to help.

  • kasimirkasimir Member Posts: 23

    i am trying to make that an index value saves in a way that when you exit the app the value is still there when you come back on

  • RabidParrotRabidParrot Formally RabidParrot. Member Posts: 956

    Are you using a table? Are you autosaving the amount? If you force quit and it hasn't autosaved your value will be equal to the last saved value.

  • RabidParrotRabidParrot Formally RabidParrot. Member Posts: 956

    Make a timer that says every 10 seconds change table cell value to Cash value. Then you save the table. When your game starts up change the cash value to the table cell value you saved.

  • kasimirkasimir Member Posts: 23

    ok

Sign In or Register to comment.