I have a pause button that's a CCMenuItem
that when I touch it, the app goes to the menu. I have the Game Scene set as a static variable on the Menu Scene so that when I resume the game I can resume my current game.
When I press the resume button, I reschedule the update on the Game Scene and replaceScene with the static Game Scene. The pause button is on a layer that the Game Scene owns.
When the game continues, the pause button is there but doesn't respond to my touch. I tried using onEnter to do resumeSchedulerAndActions but nothing.
I've come up with a solution which feels hacky, which is to create my menu in onEnter
and remove it in onExit
.
Am I missing something? Is there a way to make my menu respond to touches again?