cocos2d: CCLabelTTF child of CCSprite inherits parent scale

Much teeth gnashing tonight.  I am working on my next game idea – another kids math game using cocos2d.  It took me quite a while to figure out that if I add a label to a sprite – in this case, the math number to be answered – that it inherits from the scale of it’s parent.  If you stop to think about it, of course it does.  But the way it manifested was an apparent invisible label where otherwise it should be there.

Silly programmer.  Word to the wise:  when adding children, think carefully about the attributes being inherited.

Comments are closed.