【发布时间】:2014-04-06 19:53:13
【问题描述】:
我需要 CCRenderTexture(白色矩形)在此处渲染我的精灵(第一张图片),但它仅在左下角渲染(第二张图片)。如何更改此值?
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
我找到了这些答案,但没有帮助。是否可以改变这个位置?
【问题讨论】:
标签: ios objective-c cocos2d-iphone rendering