Basically the title says it all, I just want an easy way to save a number (a highscore) and then when i need to, access it later. I want it to be there after someone leaves the app and then returns.
Thanks, Jason [import]uid: 8335 topic_id: 12563 reply_id: 312563[/import]
sure http://developer.anscamobile.com/content/files
cheers,
-finefin [import]uid: 70635 topic_id: 12563 reply_id: 45927[/import]
Try this
http://developer.anscamobile.com/forum/2011/03/13/propertybag-all-your-data
credit goes to Jayant Varma
[import]uid: 71210 topic_id: 12563 reply_id: 45930[/import]
http://developer.anscamobile.com/code/very-simple-scoring-method [import]uid: 24641 topic_id: 12563 reply_id: 45947[/import]
Personally, I like to use the SQLite database to store values. It may be a bit overkill if you are only using it to store a high-score (since it adds 300k to the Android build size), but I find it to be the easiest way to store things. And you may want to store other things as well (top 10 scores, highest level, time played, sound on/off, etc).
http://developer.anscamobile.com/content/data-storage [import]uid: 22492 topic_id: 12563 reply_id: 45949[/import]
For quick and easy I like the Crawl Space Library:
http://www.crawlspacegames.com/crawl-space-corona-sdk-library/
See the routines Save(myData) and myData = Load() - plus there are a zillion other reasons to use it.
Jay
PS - Oh, and it’s free. 
[import]uid: 9440 topic_id: 12563 reply_id: 45959[/import]