Hi I am new to Lua and I just studied the “Ghosts vs. Monsters” sample game that Corona made. I have a question about passing a variable to another scene.
In the “Ghosts vs. Monsters” sample code, I suspect they use the “director:changeScene( “level1” )” to open another file. However, I would like to know if there is any way to pass a variable to another scene ?
should I use a global variable ?? how does global variable work in Lua?
Thx
[import]uid: 38556 topic_id: 10016 reply_id: 310016[/import]

