Could someone please help me with the process of importing a scene ive created in Cocos Studio to my cocos2dx project. I havent been able to find any documentation other than how to use Cocos Studio itself. Any help would be great as I feel lost
auto node = CSLoader::getInstance()->createNode(file);
addChild(node);
I am having the same problem as warning717.
After adding
to my project, I am getting a build error:
jni/…/…/Classes/HelloWorldScene.cpp:2:22: fatal error: CSLoader.h: No such file or directory
#include “CSLoader.h”
I added
${COCOS2D_ROOT}/cocos/editor-support
${COCOS2D_ROOT}/cocos/editor-support/cocostudio/ActionTimeline
${COCOS2D_ROOT}/external
to the include_directories section of CMakeLists.txt, and can build and run in linux.
But, I am unsure how to edit Android.mk to make it work. I have edited the LOCAL_C_INCLUDES section, and the linker still cannot find CSLoader.h.
Thanks for any help
Actually, you don’t need to change Android.mk
it should be already setup correctly for you
just need to include the header correctly I think.
#include "cocostudio/CocoStudio.h"
Thank you nite, that worked!
Thank you so much! That worked perfectly!
Feel free to post here
http://www.sonarlearning.co.uk/questions.php?question-topic=40
regarding Cocos Studio requests.
strange…
CSLoader doesn’t exist in cocos studio library.
I used cocos2d-x-3.2
never mind i found it in version 3,4