Hi,
I started to use CocoStudio to give it a try. I tried to use the exported data from Studio Editor. However, I came with a problem. According to the tutorial I have to do
I’m using cocos2d-x 2.2.2. First Step: add the head file
include “cocos-ext.h”
using namespace cocos2d::extension;
Second Step: invoke the Scene created by cocosStudio. I found we should use SceneReader instead of CCJsonReader. old codes:
CCScene * newscene = CCScene::create();
CCNodepNode=CCJsonReader::sharedJsonReader()->createNodeWithJsonFile(“SceneEditorTest/SceneEditorTest.json”); new codes:
CCScene pNode=(CCScene*)SceneReader::sharedSceneReader()->createNodeWithSceneFile(“HelloCocosStart.json”);
pDirector->runWithScene(pNode);