Monday, December 23, 2013

cocos2d how to remove this layer

Based on a CCLayerColor layer, layer, there are menu when clicking on a menu item on the menu, it is the layer removed.

May I ask what function can delete the layer ah?
Reply:
Embarrassing! Know how to do it! Who will pick points? ? ? ? ? ? ? ? ?
Reply:
I Come! ! Thank you
Reply:
The most important thing is cocos2d layer concept. Layer is a node, so you just removeChild on the line.
Reply:
Found that the layer can be used removeFromParent

No comments:

Post a Comment