It really helps to have your code indented and use code formatting when posting code. Please use the <> in the edit bar (with Bold, Italic, etc. ) and paste your code in there:
local function walkCollision(self, event) if event.phase == "began" then --if event.target =="walk" and event.object.type == "food" then if event.other.type == "food" then print ("eating") score = score + 100 updateScore(event) local function playsoundd() audio.play(eatSnd) end timer.performWithDelay(200, playsoundd) event.other:removeSelf() transition.to ( event.other, { time=1000,y=screenBottom+ 5000} ) walk:setSequence("eat") walk:play() timer.performWithDelay (100,standAgain) else health = health -1 showHealth() walk:setSequence("hit") walk:play() timer.performWithDelay (100,standAgain) print("Oeeeeeeeeeeeee") if health == 0 then -- THIS IS WHERE I AM TRYING TO GO TO THE NEXT GAME OVER SCENE--------------------------------------------- print("GAME OVER") end
I’m assuming that you didn’t show the rest of the function on purpose. Are you getting any of the prints (“Oeeeeeeeeeeee”, “GAME OVER”)?
Rob

