Closed metalim closed 9 years ago
on which platform ? Which engine version ?
cocos2d-html5 v3.6 Apologies. It seems to be behavior by design. :-( You can close the issue.
The anchor point is ignored in cc.Layer and its descendants:
https://github.com/cocos2d/cocos2d-html5/blob/develop/cocos2d/core/layers/CCLayer.js#L41
You can reactivate it with layer.ignoreAnchor = false;
cc.LayerColor draws it's rectangle as if it's anchor point was (0,0), not (0.5,0.5). That is: draws rectangle to top/right, instead of around it's center position.