Copy link to clipboard
Copied
Can anyone tell me how to save score/level/etc. information for a game on a mobile device? Or point me to any tutorials/examples please?
I'm still unsure how to read/write files in the apk (Android).
Basically, I want to allow the player to save his progress at some point so that they can restore it later.
John
Copy link to clipboard
Copied
You may want to try using Flash SharedObjects
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/SharedObject.html
I used this method when saving data to an iPhone and it worked well. It's fairly easy to get started with and it writes in the application specific directory on the phone (or app data on windows).
It retains an 'object' type so you can reference items you store through normal object referece ie. myStorageObject.data.username, myStorageObject.data.score etc, (assuming there is data).