Hey all, I just upgraded a project to .9-beta and immediately went to test out the SpriteSheet grandchildren functionality. I was able to get the child added, but when I start animating & moving the parent (there is an animation and MoveTo action running on it) the child seems to "lag" behind it, e.g. the position on the child isn't updating quickly enough so it doesn't look like a static element attached to is parent (this is for a health bar). This is happening in the 3.1.2 simulator and I have not tried it on the device yet. Below is the relevant code:
(Inside my Enemy class, which subclasses CCSprite)
healthBar = [CCSprite spriteWithTexture:self.spriteSheet.texture rect:[[CCSpriteFrameCache sharedSpriteFrameCache] rectByName:@"healthbar1.png"]];
healthBar.anchorPoint = ccp(0,0);
healthBar.position = ccp(-10,0);
healthBar.honorParentTransform &= ~CC_HONOR_PARENT_TRANSFORM_ROTATE;
healthBar.honorParentTransform &= ~CC_HONOR_PARENT_TRANSFORM_SCALE;
[self addChild:healthBar z:1];
The rectByName: method on CCSpriteFrameCash is something I added as a convenience method. Any help is most appreciated!