Cocos2DXNA / cocos2d-xna

XNA Port of Cocos2d-X
www.cocos2dxna.com
227 stars 123 forks source link

CCNode::AddChild issue #336

Closed daihuynh closed 10 years ago

daihuynh commented 11 years ago

Target: Windows Phone 8 Issue:

totallyeviljake commented 11 years ago

You will need to post your code for us to comment. All of the tests work and all of our games work, so something in the way you are adding the node is causing the problem.

totallyeviljake commented 11 years ago

I read through your exception trace again, and I think you are doing this:

CCMenuItemSprite m = new CCMenuItemSprite(sprite1, sprite1);

This won't work. You can't use the same sprite object for more than one menu state.

totallyeviljake commented 10 years ago

reopen if this problem happens again and you have more information to share.