I have director class in my game. I have main menu, where are buttons, what i can click and then it changes scene. Now if i click "play" button, game starts normally. When game is over, director changes scene back to main menu. Main menu show propelly, but if i try to click buttons, nothing happens. Please help me.
Label: corona android iphone ipad building error inmobi problem display screen View image tableView failed object physics touch button game lua config event listener |
Go back to main menu
Are you putting your objects in groups?
Yeah, everything should be in groups.
Now it works! I just forget to remove listeners. :)
But i have still one problem: I have score system in my game and now when i get game over and director changes scene to main menu and then i play game again, score system acts weird. I think i should remove score system someway like remove listeners. Help, please.
Here is my code:
1 2 3 4 5 | local function a (event) score = score + 0.1 aika.text = "Time: " .. score end timer.performWithDelay( 50, a, 0) |
Never mind. I figured that out myself. :)
Solution:
1 | local kello = timer.performWithDelay( 50, a, 0) |
uapo15, I have the same problem , for replay my game again,
some times my game work great, some times my screen got froze,
how did u solve the problem ?
Can you post some code? It is pretty hard to say anything without code.
unfourtently , I sent my code to company to fix it to me, no body in this forum responded and help me out to fix my problem,
hey guys I think if I pay to anyone in the forum is better than pay for company ,
just email me how is expert in this forum to work with
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
Crypto
How to create memory function
Creating a world selection screen
Selling My MacBook! Best offer wins it...
Which Android Device should be purchased for testing with corona SDK
display.statusBarHeight not scaled
Play user video [Resolved: Not possible]
Scaling issue with Sprites
My thoughts on some requests