cocos2d / cocos2d-x-for-xna

port cocos2d-x into c# based on XNA
124 stars 49 forks source link

using scale() on sprites from a sprite sheet #16

Open totallyevil opened 12 years ago

totallyevil commented 12 years ago

I have ran into another problem recently.

It seems that trying to change the .scale values on CCSprite that belongs in a spritesheet causes problems. The individual CCSprite gets resized correctly, but the rest of the elements in the spritesheet are moved out of their positions, as if being pushed by the newly resized Sprite.

I have not found any solutions other than avoid rescaling of sprites (other elements like labels can be rescaled without issue).

forum topic: http://www.cocos2d-x.org/boards/17/topics/11987