Hey there. I’m trying to transition from part of my game to the “gameover” scene.
Is what I’m doing alright?
local function onLocalCollision( foo, event ) local over = display.newImage( "gameover.png") storyboard.gotoScene( "over" ) end
This is supposed to make the game go to the lua file in the project folder named “over”, right? Instead it keeps on giving me an error whenever the collision that is supposed to cause the transition happens.