So i use example code which you can find in corona.
What i try achive is changing scenes between menu and lvl1.
heres code:
<this one is fuction for scene change>
local function changeScenes()
composer.gotoScene( “menu”)
end
<this is code were i should insert it, but dont know how, so it will work>
local function bombTouched(event)
if ( event.phase == “began” ) then
Runtime:removeEventListener( “enterFrame”, event.self )
event.target:removeSelf()
if (score==0) then
<here is problem, dont know what too write here too make it work.>
changeScenes
else
score = math.floor(score * 0.5)
scoreText.text = score
end
end
end