1

在 CCLayerColor.m

if ((self = [super init]))

{


    [self setIsRelativeAnchorPoint:YES];
    self.anchorPoint = ccp(0.5,0.5);

}

但是提示方法已弃用。谁知道如何找到未弃用的方法?

4

1 回答 1

1

尝试这个:

// v1.0
node.isRelativeAnchorPoint = YES;

// v2.0
node.ignoreAnchorPointForPosition = NO;  // The value is "negated"
于 2012-09-26T13:00:17.080 回答