I cut and pasted the scene template and used it to learn, but I’m doing something wrong with the removeScene portion.
I put a button in the middle of the screen in a menu.lua file. I used an event handler that calls: composer.gotoScene(“newPage”). When I click the button, it goes to the _newPage _scene, but the menu file button is still on the screen.
I typed _composer.removeScene(“menu”) _in the menu.lua _scene:destroy() _function, but that didn’t work so I tried using _removeScene _in the page I was calling(_newPage) _and that didn’t remove the button either. I don’ know what else to try. I must be reading the guides wrong. Any help would be appreciated.