Hi Guys,
I am looking for the solution about how to load the custom class (i.e. CCNode) class of CocosBuilder in Cocos2D-X.
I tried using same solution as we load CCLayer by changing it CCNodeLoader. But it is giving me the error.
For example, to load a layer.
MainMenuLayerLoader.h
MainMenuLayer.h
MainMenuLayer.ccp
Now if I have to load the ccbi file for which root object is CCNode instead of CCLayer. Then what would be solution? Currently I am trying it as:
Dragon.h > CCNode> CCNodeLoader
Dragon.ccp
DragonLoader.h
Error is:
CCB_STATIC_NEW_AUTORELEASE_OBJECT_WITH_INIT_METHOD(Dragon, create);
No member name ‘init’ in ‘Dragon’
Thanks,
Paras