i have been working on my first game and i almost done with it.all my function are working correctly
but i am stuck at one function of collision when two objects(dynamic) collide with each other due to gravity.
what i did is-- i wrote above the create scene function
function firstcollision(event)
if(event.phase==“began”) then
storyboard.gotoScene(“gameover”)
print(“collide”)
end
end
and added the event listener in enter scene
Runtime:addEventListener(“collision”,firstcollision)
collide word was printed but the scene did not changed.i am not able to understand where did i go wrong.