7
बदल रहा यह काम नहीं करता के बाद CCSprite के आकार पाने के लिए:कैसे पैमाने
CCSprite *testscale=[CCSprite spriteWithSpriteFrame:starFrame];
testscale.scale=0.5;
float starWidth=testscale.contentSizeInPixels.width;
CCLOG(@"contentpixels: %f contentsize: %f",starWidth, testscale.contentSize.width);
CCLOG में दो outputs दोनों स्केलिंग के बाद आकार स्प्राइट के मूल पिक्सेल आकार, नहीं दिखा।
वहाँ एक रास्ता ऐसा किए बिना यह प्राप्त करने के लिए है ...
float displayWidth=starWidth*testscale.scale;