If it’s possible, how i can draw and see boundingBox of Node and Node-based objects?
P.S
i define: #define CC_SPRITE_DEBUG_DRAW 1 but when i recompile cocos2dx i got error:
…/sprite_nodes/CCSprite.cpp: in «virtual void cocos2d::Sprite::updateTransform()»:
…/sprite_nodes/CCSprite.cpp:539:33: error: no declaration «ccDrawPoly» in this scope
…/sprite_nodes/CCSprite.cpp: in «virtual void cocos2d::Sprite::draw()»:
…/sprite_nodes/CCSprite.cpp:592:33: error: no declaration «ccDrawPoly» in this scope
David great fix , but there still problem , in case you have sprite that is not being rendered using an SpriteBatchNode and the updateTransform from CCSprite never called so you never see the bounding box
so what i found to work is :
in you sprite just implement the draw function to look like this :