Answer the question
In order to leave comments, you need to log in
How to show animation of sprite appearance via scale from point in Cocos2d-x?
There is a Sprite object, if you put it on the scene, it is displayed in the middle of the window as it should.
Now I have added the animation code:
this->stopAllActions();
this->setScale(0.01f);
this->runAction(ScaleBy::create(0.5f, 100.0f));
Answer the question
In order to leave comments, you need to log in
There should be two animations - movement from the center to the corner and simultaneous scaling.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question