Hi,
I'm looking to create a menu for my game, for pausing/game over screens, and I want it to 'float' above my sprites.
I've tried creating a new scene with my menu layer, and adding it by doing a push scene. This however resets the background so I don't see the game paused under the menu.
I've also tried putting the menu layer in my main game play layer, and then making it hidden until I want to show the pause menu. I have a problem with that because the menu buttons remain active even if they're hidden, so I can accidentally return the main menu by tapping the button, even though it's not there.
Is there a good way to do this?? Can I make the buttons inactive so they don't do anything when tapped, or should I have a flag in that layer, and then simply check if the menu is active or not?
Thanks