Hey guys im sure this is a simple fix, but i cant seem to figure it out myself. i have the director class working so that i have a level selection screen, i choose level 1 and it loads the "level1".lua file, but it keeps the level selection screen playing in the background. maybe i am missing some code that will clean the screen before loading the level1.lua, any help would be appreciated
Label: corona android iphone ipad building error inmobi problem display screen View image tableView failed object physics touch button game lua config event listener |
Cleaning the slate
actually i think i found the problem, i didnt have the displaygroup code that each .lua file needs, but when i add this is causes conflict because i already am using the display.newGroup(); to control my camera on level 1. Can i just have it load the level1 file and not use the director class any longer?
You can have any groups you want, not just one. If you don't return it at the new() function, it will stay on the display.
Now if you need something that must stay on the screen, you can declare it at main.lua file and not insert into the mainGroup.
i understand, got it figured out, thanks for the help and thanks for creating a very useful tool.
views:1423 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
相关文章
how to detect the requested free game has been downloaded ?
Gumbo - A Corona Level Design Tool
Check if has body
Ferodo Race Challenge app
Button becomes inactive after use
Can load custom font, but not bold version
app rejected by apple due to downloading images in documents directory - what to do ?
Advertising through adwhirl support on corona apps for iphone
How to use custom property as a handler?
What about Linux users?
Gumbo - A Corona Level Design Tool
Check if has body
Ferodo Race Challenge app
Button becomes inactive after use
Can load custom font, but not bold version
app rejected by apple due to downloading images in documents directory - what to do ?
Advertising through adwhirl support on corona apps for iphone
How to use custom property as a handler?
What about Linux users?
corona forums © 2003-2011