Is it possible to add CCLayers as child of other CCLayers?

Hello Everyone…

First time game developer here…
This is my app setup:
AppDelegate call GameScene(Class)
GameScene creates a Scene and adds to itself an instance if GameLayer(Class)
GameLayer is the main class where the whole game takes place.

But this game is an RTS so i have other layer that i need to add to GameLayer on demand and remove on demand. These layers, call for the adding a specific sprite by call a method from the GameLayer…

But whenever i press the button to add the temporary layer i get a crash… am i doing something wrong?? or is what i am trying even possible??

any help with be greatly appreciated…

My games are built from CCLayer hierarchies that go 10 deep in places.

Works great. If you’re getting a crash, it is a bug in your code. Sounds like might be your Touch Delegate stuff.