So basically i have 2 scenes level1.lua and checkAnswer.lua, i want to do is to restart the game from checkAnswer.lua
This is how i’m trying to do this:
options = {effect="fade", time = 500}
- Level1.lua - call composer.showOverlay(“checkAnswer”, options)
- checkAnswer - Call composer.removeScene(“level1”,options)
- checkAnswer - Call composer.gotoScene(“level1”,options)
The calls in checkAnswer, are made from a function inside scene:create ( dont really now, if this have anything to do with it. )
After the call to gotoScene(“level1”), i get a black screen, and absolute no message on the console, apparently the level1, is not getting called, i have inserted, print statements on the scene:create, and scene:show, but it never gets there.
Any ideas?
Thanks!