I'm creating a 200x100 ColorLayer like this :
ColorLayer *cl = [ColorLayer layerWithColor:ccc4(127, 127, 0, 127) width:200 height:100];
If I print its contentSize in an NSLog, it reports 200x100 as expected.
But the layer uses ccp(0, 0) as its anchorPoint. No matter if I try to change it, it's always drawn as if the anchor point was in (0, 0). I've seen a couple of posts reporting similar problems :
- this one : Anchor point works with TextureNode but ignored by CocosNode subclasses
- and this one : TileMapAtlas vs TMXTiledMap anchor points (with related issue 508)
In both cases, the issue was solved by setting manually the correct contentSize (because the layer had a content size of 0x0). But in my case, the color layer already has a correct contentSize, so I'm thinking this may be a bug. I'm using one of the latest SVN revisions.
What do you think ?