CocosBuilder Reader don't support CCBFile custom property!

I have followed the cocosbuilder game tutorial, here is the link:
http://code.zynga.com/2012/10/creating-a-game-with-cocosbuilder/

Now I want to port the game with cocos2d-x,but it seems CCReader-x don’t support some features.

when parse the EndCoin’s property “isEndCoin”, it fires “property not support” assertion.
And when the dragon collide with a bomb, the code to create a explosion effect also failed, due to the following code piece.

CCBAnimationManager *animationManager = (CCBAnimationManager*)this->getUserObject();
I hope someone can help me figure it out,
Thanks!

Regards,
andyque

same problem here: http://www.cocos2d-x.org/boards/6/topics/17607?r=17692

please do not open 1000 threads… search the forum before creating new threads…

Hi Zilong,

I think you have proceeded farther than I am. I am also trying to port the same tutorial. But as soon as I assign the class name in CCB file then Cocos2D-X fails to load the ccbi file. I tried first with MainMenuScene only. Any luck or solution with that?

Second in tutorial for play button the method name is pressedPlay:

I have created a virtual function in Cocos2D-X but how to declare it in CocosBuilder?

Thanks,
Paras Mendiratta

zilong shanren wrote:

I have followed the cocosbuilder game tutorial, here is the link:
http://code.zynga.com/2012/10/creating-a-game-with-cocosbuilder/
>
Now I want to port the game with cocos2d-x,but it seems CCReader-x don’t support some features.
>
when parse the EndCoin’s property “isEndCoin”, it fires “property not support” assertion.
And when the dragon collide with a bomb, the code to create a explosion effect also failed, due to the following code piece.
>
CCBAnimationManager *animationManager = (CCBAnimationManager*)this->getUserObject();
I hope someone can help me figure it out,
Thanks!
>
Regards,
andyque

@Paras Mendiratta

Hi Paras Mendiratta,if you want to connect your custom class with a ccbi file.
you can take the following 2 steps:
1.define a custom class who’s name is equals to the name in ccb file.
2.define a class loader class

let’s take mainMenuScene for example,the codes are in the attachment files.

You can refer to the tests in testCPP project for details,hope it can helps.

regards,
zilongshanren

Thanks Zilong!

You have directed me in right direction. Let me know if can chat over Skype or something. My Skype ID: codesnooker