Hi guys, I’m building a game and I got stuck. This is the problem: After the player loses an overlay is shown, it shows how many points he has made, and it has a button to restart. I’ve been googling a bit and found this thread: How to reload a scene and proceed like normal?. (btw, I’m using composer not storyboards)
So in that thread the advice is to do something like this:
main.lua (not a real scene but starts the whole process) --> menu.lua --> level1.lua --> tryagain.lua --> level1.lua
My “tryagain.lua” is not an scene, it’s an overlay that let’s the user see the parent scene. So if in the handler of my “again” button I do something like this:
handleAgain = function (event) if ( "ended" == event.phase) then composer.removeScene("scene"); composer.gotoScene("scene"); end end
I get a black screen. How should I handle this???
Thanks a lot!!