Cocos2DXNA / cocos2d-xna

XNA Port of Cocos2d-X
www.cocos2dxna.com
226 stars 123 forks source link

CCScaleTo and NodeToParentTransform #323

Closed totallyeviljake closed 11 years ago

totallyeviljake commented 11 years ago

CCScaleTo(duration, scale) does not change ScaleX or ScaleY. if the ScaleX is set to zero and CCScaleTo runs, the NodeToParentTransform for the target will be invalid because it will still us ScaleX or ScaleY instead of Scale.

CCLayer foo = new CCLayer()

foo.ScaleX = 0f;

foo.RunAction(new CCScaleTo(0.75, 1f);

test: foo.ScaleX ... it's zero

totallyeviljake commented 11 years ago

user error.