Math ';setIsRelativeAnchorPoint:&x27;不赞成

Math ';setIsRelativeAnchorPoint:&x27;不赞成,math,cocos2d-iphone,deprecated,Math,Cocos2d Iphone,Deprecated,在CCLayerColor.m中 if((self=[super init])) } 但提示方法已弃用。谁知道如何查找未弃用的方法?请尝试以下操作: // v1.0 node.isRelativeAnchorPoint = YES; // v2.0 node.ignoreAnchorPointForPosition = NO; // The value is "negated" 试试这个: // v1.0 node.isRelativeAnchorPoint = YES; // v2.0

在CCLayerColor.m中

if((self=[super init]))

}

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

请尝试以下操作:

// v1.0
node.isRelativeAnchorPoint = YES;

// v2.0
node.ignoreAnchorPointForPosition = NO;  // The value is "negated"
试试这个:

// v1.0
node.isRelativeAnchorPoint = YES;

// v2.0
node.ignoreAnchorPointForPosition = NO;  // The value is "negated"

看看cocos2d.h告诉我你的cocos2d版本我认为新的等价物是IgnoreAnchortForPosition是的,非常感谢mauch看看cocos2d.h告诉我你的cocos2d版本我认为新的等价物是IgnoreAnchortForPosition是的,非常感谢mauch