Does anyone know how to pass variables from one scene to another?
Label: corona android iphone ipad building error inmobi problem display screen View image tableView failed object physics touch button game lua config event listener |
How do I pass variables with directors class?
Nevermind, solved it
You can use global variables, database or a lua file (package) to store them.
Solved it with global variables :) Thanks though!
Maybe I missed something, but my global variables are not going from one module to another?
I have:
newGame = true
gameRound = 0
in mainmenu.lua
and when pushing the button and using director:changeScene("game") newGame and gameRound are equal to nil?
Those are not real globals. Try use _G.newGame / _G.gameRound instead :)
views:1234 update:2011/10/13 9:25:17
热门文章
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
相关文章
Login Problem
Example of parsing a twitter feed from one twitter user?
How to make a Copy of a display object
how to make self variable so not all actors die only the one being attacked?
Assertion failed error with "Runtime:addEventListener'
Can't seem to change emission rate on the fly.
How do you prevent a draggable object from being dragged too fast?
Multiple object Drag
Game close to completion - general advice please
how to rotate player if get effect by gravity
Example of parsing a twitter feed from one twitter user?
How to make a Copy of a display object
how to make self variable so not all actors die only the one being attacked?
Assertion failed error with "Runtime:addEventListener'
Can't seem to change emission rate on the fly.
How do you prevent a draggable object from being dragged too fast?
Multiple object Drag
Game close to completion - general advice please
how to rotate player if get effect by gravity
corona forums © 2003-2011