The keyword for this trouble should probably be sub-folder
(or "tree
").
Sprite builder is actually not supporting joint
(sub-folder to a CCNode
) while importing a node.
So one of the solution while facing such problem is to change the way you made your CCNode
.
In this case, it have been solved by changing this:
(LAYER1 >>> LAYER2 >>> LAYER3 >>> ........)
CCNode >>> CCSprite + CCPhysicNode >>> CCNode(Wall) + CCNode(Obstacle) + ....
To this:
CCNode >>> CCSprite + CCNode(wall) + CCNode(Obstacle) + ....
Thanks to @Tibor for warning me that the implementation was good (it induced me that the trouble should be in the interface of SB) and for giving me the good tips for debugging my work.