Loading CCNode class of that is defined in cocosbuilder

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
Dragon.ccp
DragonLoader.h
> CCNodeLoader

Error is:

CCB_STATIC_NEW_AUTORELEASE_OBJECT_WITH_INIT_METHOD(Dragon, create);

No member name ‘init’ in ‘Dragon’

Thanks,
Paras

Never mind, I found the solution on my own.

I think we should add init for CCNode.

May be we should add init in CCObject.

does CCB_STATIC_NEW_AUTORELEASE_OBJECT_WITH_INIT_METHOD(Dragon, create) change to CCB_STATIC_NEW_AUTORELEASE_OBJECT_METHOD(Dragon, create) ?

`Minggo: No need of init method.

`Jetion: Yes, I did the same over last weekend and it solved.