i am using v0.99rc. i have a peculiar problem.
i want to add a label to a sprite as a child and center that label on the center of the sprite. if i change the anchorpoint of the sprite and then try and position the label the result is a not centered label i.e:
sprite.anchorpoint = ccp(0,0.5);
label.position = [sprite convertToNodeSpace:sprite.position];
I've tried setting the label anchorpoint to that of the sprite but this doesn't help.
if I don't change the anchorpoint of the sprite, the label is centered as it should be.
Any pointers?
Thanks.