So I am trying to make a game over menu. I am using a scene to act as a transitional scene to remove my gameplay scene. I have tried calling the removeScene function everywhere I can in my gameOver.lua file. No matter where I place the code it will not remove the scene. When I press “Retry” in my game over screen it takes me back to the gamePlay.lua file like it should but none of the code outside of the listener functions reset and the previous physics boxes that I had in my first run still exist when I try recalling it. Is this a bug going on or am I just calling this wrong?
I’ve used the composer.removeScene(“playGame”) outside the scene, inside create, inside show, inside the remove in my playGame file. It just wont work no matter where I place it.
Thanks for reading.