Hello. I’m trying to create sprite with filename:
CCSprite s = CCSprite::create;
Shrite shows correctly, but getContentSize returns strange numbers:
LOGD .width, s~~>getContentSize.height);
// w:~~2127890272 h:0
Width =~~2127890272 and height = 0.
I have tried to provide rect for sprite, and in that case getContentSize returns invalid numbers too.
CCSprites = CCSprite::create(“food/5.png”, CCRectMake(0,0,100,100));
Why it’s happpening? How can I get correct sprite dimensions?