Play Cocos Studio Sprite Animation
There is 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. excute it
6. oh~ nice good very very good.
Now, you can customize it.
here is source code what i copy and paste in 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
Good luck.
'English > Programming Tips' 카테고리의 다른 글
Android vibrate method in Unity Enviroment (0) | 2017.07.02 |
---|---|
Best CC0 sprites for mobile developer (0) | 2017.01.24 |
Call android Toast methon in cocos2dx by using JNI function (C++) (0) | 2016.11.03 |
How to use pugixml in android cocos2d develop enviroment (pugixml singleton / pugixml local path) (0) | 2016.10.05 |
How to set pugi xml in android cocos2d develop enviroment (0) | 2016.10.05 |
How to use text with enableOutline in cocos2dx / runtime text creation with outline (0) | 2016.10.05 |
kingdom rush frontiers stage 10 get 3 stars (0) | 2016.10.04 |
최근댓글