Need help with scenes

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

Hi @seto8,

Have you set up your “menu” and “lvl1” modules yet, under the Composer library framework? If Composer is an entirely new concept, I recommend that you study how it works before proceeding with too much game functionality.

Best regards,

Brent

Hi @seto8,

Have you set up your “menu” and “lvl1” modules yet, under the Composer library framework? If Composer is an entirely new concept, I recommend that you study how it works before proceeding with too much game functionality.

Best regards,

Brent