This does not work:
CCSprite *testscale=[CCSprite spriteWithSpriteFrame:starFrame]; testscale.scale=0.5; float starWidth=testscale.contentSizeInPixels.width; CCLOG(@"contentpixels: %f contentsize: %f",starWidth, testscale.contentSize.width);
The two outputs in CCLOG show the original sprite pixel size, not the size after scaling.
Is there any way to get this without doing this? ...
float displayWidth=starWidth*testscale.scale;
johnbakers
source share