I want to make a pause menu that appears when i pause my game.
I understand that there are several things here i can use.
I could 'push' the old scene making my current scene freeze and bringing in a new one
PauseScene *ps = [PauseScene node];
[[CCDirector sharedDirector] pushScene:ps];
the only problem here is the old scene is not left in the background, its hidden away in memory.
I can pause the game using the following command
[[CCDirector sharedDirector] pause];
and then pull in a new layer to the current scene.
although i think touches may pass onto the gamescene that is paused behind and 'stack up' so that when you unpause, it may do lots of things you did not expect.
What is the correct way to do this? or a suggested way that someone has found works and is wiling to share?