reading

I have a scene in which a score is created. I want to save that score somewhere so I can add to it when I load the scene again, because of course all the values in the scene get wiped clean every time I load it. I'm not sure where to start - is that modules? Or... ? Can someone please point me at the docs or tutorials or concepts I need to absorb in order to move on to that step? Thanks a bunch!

You can save it to a file or you can make it a global if you want the value to stay accessible throughout your game.

Make sense? :)

How do you make it a global?

or you can keep it local and pass it as a parameter to the next scene

Or save it using ice library from http://developer.anscamobile.com/code/ice

Honestly, it's amazingly easy to use for saving/loading data.

Naomi

the problem with saving and loading data at every scene change is file access eats battery life and adds to loading time better to keep local and pass as a parameter

views:1599 update:2011/10/22 17:28:16
corona forums © 2003-2011