1

I am trying to animate the ScaleX and ScaleY properties of my Sprite using the following code. Nothing is happening though. I am used to using UIViews and the UIView.Animate method which allows me to set my end result and a duration. Is something like this possible with cocos?

        baloon.RunAction(new CCActionTween(.009f, "ScaleX", baloon.ScaleX,  (float)(w / baloon.ContentSize.Width)));
        baloon.RunAction(new CCActionTween(.009f, "ScaleY", baloon.ScaleY,  (float)(h / baloon.ContentSize.Height)));
Jarmez De La Rocha
  • 618
  • 2
  • 9
  • 19

0 Answers0