rotate a sprite around an anchor point
问题 I have a sprite : ombreoeuf1 = [CCSprite spriteWithFile:@"mangeurcentremieu3_03.png" ]; ombreoeuf1.position = ccp(240,160); [self addChild:ombreoeuf1]; And I would like to rotate it constantly around an anchor point. How can I do it? 回答1: You can first set anchor point by setting the property anchorPoint , for example: [ombreoeuf1 setAnchorPoint:ccp(0,0)] and then set rotation (in degrees) by setting another property rotation : [ombreoeuf1 setRotation:90] anchorPoint and rotation are both