problems with saving ingame cash
kasimir
Member Posts: 23
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
Show us your code. What you explain tells us nothing to be able to help.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
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
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.
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.
ok