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:1597 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
相关文章
Who's in the UK?
Launch game from hyperlink in email
Managing application switching? (iOS)
NEW: Pause/Resume Timers and a Table to Hold ALL Active Timers!
Securing in-app purchases
How to deal with indefinite numbers?
Cleanup problem with director -- help please!
quick syntax question
"INSTALL_FAILED_MISSING_SHARED_LIBRARY
interested in Corona SDK but concerned about API - is it possible to add features?
Launch game from hyperlink in email
Managing application switching? (iOS)
NEW: Pause/Resume Timers and a Table to Hold ALL Active Timers!
Securing in-app purchases
How to deal with indefinite numbers?
Cleanup problem with director -- help please!
quick syntax question
"INSTALL_FAILED_MISSING_SHARED_LIBRARY
interested in Corona SDK but concerned about API - is it possible to add features?
corona forums © 2003-2011