Blackscreen on attempt to Restart the scene

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}
  1. Level1.lua - call composer.showOverlay(“checkAnswer”, options)
  2. checkAnswer - Call composer.removeScene(“level1”,options)
  3. 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!

i have a similar problem to you, i hope someone answers this soon

This thread is rather old (2 months), but you shouldn’t try to change scenes within scene:create().

i have a similar problem to you, i hope someone answers this soon

This thread is rather old (2 months), but you shouldn’t try to change scenes within scene:create().