0

I am making a menu for my cocos2d game. I would like to know if there is a way I can change layers within the same scene, similar to the pop and replace scene? I want to use this approach to keep the background unchanged as I navigate through the main menu hierarchy. How can I achieve this? I wouldn't mind another approach that would be more effective. Thanks.

4

1 回答 1

0

据我所知,没有具体的机制;只需保留对类中每一层的引用,将它们添加到根场景,并在适当的时候显示/隐藏它们。

于 2013-09-09T16:10:15.313 回答