Hi All,
I've been beating my head against this problem for over a day now and either I'm not getting it or something's wrong.
In my game I have a HomeScene, in which the user chooses 'Play Now', 'How To Play' or 'About'. I'm using AtlasSpriteManager and a Menu to display the buttons.
If the user selects 'Play Now', Director is told to ReplaceScene to an intermediary scene called 'SelectPlayLevel', on which the user chooses 'Easy', 'Medium', 'Hard' which sets the level of difficulty. Pretty rudimentary stuff so far.
Once the user has chosen their level, they go into the heart of the game (it's a card game) by Director being told to ReplaceScene with GamePlayScene. Once they've won, Director is told to ReplaceScene with a new one (YouWonScene) which shows a nice little animation, congratulations, etc, with another AtlasSpriteManager/Menu combo showing two options: 'Play Again' and 'Menu'.
'Menu' tells Director to ReplaceScene with HomeScene (back to the main title screen). Selecting 'Play Again' tells Director to ReplaceScene with GamePlayScene, with the same settings etc, and this is where the problem lies: the user gets sent to the GamePlayScene and while not visible at all, the clickable areas where 'Play Again' and 'Menu' were displayed on the YouWonScene scene are still 'hot' and react to a touch. Instead of the playing card sprite being clicked, pressing that area will either send the user to the HomeScene, or restart the GamePlayScene (as if the 'Menu' or 'Play Again' button was pressed).
I'm really pulling my hair out trying to figure this out, so I hope I've made it clear enough here and someone can give me some advice.
I'm using Cocos2d 0.8.1, XCode 3.2, Simulator 3.1/iPod 3.1
Thanks!