0
我需要CCRenderTexture(白色矩形)来渲染我的精灵(第1张图片),但它的渲染只在左下角(第2张图片)。我怎样才能改变这个值?CCRenderTexture anchorPoint还是什么?
renderTextrure.position = CCP(p.x,p.y);
renderTexture.sprite.position = ccp(p.x,p.y);
renderTexture.sprite.anchorPoint = ccp(0.5,0.5);
编辑
CCRenderTexture initial position
CCRenderTexture size and position in Cocos2d-iphone
我找到这些问题的答案,但它并没有帮助。可以改变这个位置吗?
感谢您的回答,但它没有帮助。 – flowmachine1