Hi,
I have a problem where scene:hide() seems to be called when the lua file reloads.
In this case the whole project works fine the first time through.
When the player character collides with the enemy, the user is taken back to the menu screen.
But when they tap the start button to restart, they go back to scene_game.lua, and scene:hide() runs as soon as the file loads. Probably I’m not clearing something correctly when the first collision occurs and the user is taken back to scene_menu.lua… but if anyone can help out I’d really appreciate it!
I also have a scene_restart.lua currently not in use but included with the files. The idea here was that when the collision occurs, the user is briefly taken to scene_restart.lua where the composer.removeScene() method is called on scene_game.lua - but this didn’t work either.
Link to the project - https://www.dropbox.com/s/dhhu1s09pkk6q0n/Composer%20Tiny%20Game.zip
Thanks in advance,
Mark