I have a restart scene which does this.
composer.removeScene(“game”)
composer.gotoScene(“game”)
The game scene starts fine the first time it is restarted but the second time the screen goes black.
I have a restart scene which does this.
composer.removeScene(“game”)
composer.gotoScene(“game”)
The game scene starts fine the first time it is restarted but the second time the screen goes black.
Have you looked in your console log for error messages?
Is there something in your restart screen creating a black full screen image?
Rob
There are no error messages. There is nothing in the restart scene except for the composer code and those two lines of code. The restart scene is basically a black screen created only to handle restarting.
Can you post the code for your reset scene?
Rob
Rob, I found out what was going wrong. My code was in the scene:create scope so the second time it went to the scene:show directly. Newbie mistake.
Thanks. Couldn’t have figured it out without knowing where to look.
Have you looked in your console log for error messages?
Is there something in your restart screen creating a black full screen image?
Rob
There are no error messages. There is nothing in the restart scene except for the composer code and those two lines of code. The restart scene is basically a black screen created only to handle restarting.
Can you post the code for your reset scene?
Rob
Rob, I found out what was going wrong. My code was in the scene:create scope so the second time it went to the scene:show directly. Newbie mistake.
Thanks. Couldn’t have figured it out without knowing where to look.