How to build cocos2dx sprite animation in CocosStudio?



Play Cocos Studio Sprite Animation 

There is a simple way to play cocos sprite animation created from cocos studio.

The way to do it

1. create sprite as plist file which is use for sprite animation
2. import plist file to cocos studio
3. create sprite animation in cocos studio
4. add C++ code in visual studio
5. execute it
6. oh~ nice good very very good.

Now, you can customize it.

here is source code what I copy and paste in the video.

ActionTimeline *actionTimeline = CSLoader::createTimeline(“IntroScene.csb”);
actionTimeline->setTimeSpeed(2.0f);
actionTimeline->gotoFrameAndPlay(0);
this->runAction(actionTimeline);

All steps are recorded as Video. Just check it once

 





답글 남기기

이메일은 공개되지 않습니다. 필수 입력창은 * 로 표시되어 있습니다.