With cocos2d-iphone-0.9.0-beta2, I have the following issue:
objects inheriting from CCSprite no longer can be scaled
I have a PSprite class inheriting from CCSprite:
@interface PSprite : CCSprite {
cpShape* shape;
}
@end
...
PSprite *sprite = [PSprite spriteWithFile:@"blocks.png"];
sprite.scaleX = 0.5;
[self addChild:sprite z:10];
doesn't reflect any changes on screen.
Putting CCSprite instead of PSprite in the above code will work properly, though.
My guess is that some code added to CCSprite to make it work better on CCSpriteSheet is messing up the functionality of classes that extend CCSprite