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!
Label: corona android iphone ipad building error inmobi problem display screen View image tableView failed object physics touch button game lua config event listener |
reading
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:1598 update:2011/10/22 17:28:16
热门文章
GameCenter LeaderBoards and Achievements Enabled Through OpenFeint
send message and call to a person
Forum: Report Spam + PM
[INSTALL_PARSE_FAILED_NO_CERTIFICATES]
[SOLVED] Director ERROR: Failed to execute new( params ) function on 'screen1'
Too many (200) local variables
Corona SVG Level Builder released. Drag and drop physics level editor with Inkscape and SVG.
Small bug in Collectible Items example
Pivot Joints and apparent elasticity
Can't make removeSelf() delayed
send message and call to a person
Forum: Report Spam + PM
[INSTALL_PARSE_FAILED_NO_CERTIFICATES]
[SOLVED] Director ERROR: Failed to execute new( params ) function on 'screen1'
Too many (200) local variables
Corona SVG Level Builder released. Drag and drop physics level editor with Inkscape and SVG.
Small bug in Collectible Items example
Pivot Joints and apparent elasticity
Can't make removeSelf() delayed
相关文章
openfeint.launchDashboard("achievements") not working?
Spinning wheel "CUT THE ROPE"
Why I can't see the attach image in a Particle effect?
Sprite memory leak (not texture mem)?
Server-Side Build Problems
Distimo Monitor - How good?
I cannot get publish to work for the life of me
Anyone going to Google I/O ???
native alerts in button event handlers preventing proper button behaviour
score in crawl space Library
Spinning wheel "CUT THE ROPE"
Why I can't see the attach image in a Particle effect?
Sprite memory leak (not texture mem)?
Server-Side Build Problems
Distimo Monitor - How good?
I cannot get publish to work for the life of me
Anyone going to Google I/O ???
native alerts in button event handlers preventing proper button behaviour
score in crawl space Library
corona forums © 2003-2011