在CCLayerColor.m
中if((self = [super init]))
{
[self setIsRelativeAnchorPoint:YES];
self.anchorPoint = ccp(0.5,0.5);
}
但是提示方法已弃用。谁知道如何找到不推荐使用的方法?
答案 0 :(得分:1)
试试这个:
// v1.0
node.isRelativeAnchorPoint = YES;
// v2.0
node.ignoreAnchorPointForPosition = NO; // The value is "negated"