Did they changed the positioning method in this cocos2d version 2 ?
i do this :
mainBack=[CCSprite spriteWithFile:@"plus.png"];
mainBack.position=ccp(winSize.width/2,winSize.height/2);
NSLog(@"THE PLACE IS IN:%@",NSStringFromCGPoint(mainBack.position) );
[self addChild:mainBack z:0];
its not in the middle but next to it.
it does prints 160, 240.
i am in a retina display when the image is twice bigger .
why is it not in the middle of the screen ?
thanks.
i think u r doing this in ur init method of first scene. Try same thing in onEnter method..everything works fine.