example from cocostudio is not ok

example from cocostudio is not ok
0.0 0


Hi. I’ve encountered with strange behavior of example scene in TestCpp project. I open Cocostudio, go to scene editor, open example scene “FishJoy2”, launch preview, it looks fine. Then I do file->export and copy the exported data to TestCpp project (replace files in Resources/hd/scenetest). After that I clean project and launch it. And the result is …

It happens on all platforms. The original FishJoy2 scene (that coming with cocos2d-x) works fine. I’m using Cocostudio and cocos2d-x 2.2.0.
What’s wrong?


Hmm, I can’t repo this error, can you post your code for loading this scene?

Here my code for loading the scene

    CCNode *pFishJoyScene = CCSSceneReader::sharedSceneReader()->createNodeWithSceneFile("FishJoy2.json");


you can use regular TestCpp project. Here’s the scene code: https://github.com/cocos2d/cocos2d-x/blob/master/samples/Cpp/TestCpp/Classes/ExtensionsTest/CocoStudioSceneTest/SceneEditorTest.cpp
and AppDelegate code: https://github.com/cocos2d/cocos2d-x/blob/master/samples/Cpp/TestCpp/Classes/AppDelegate.cpp

I think it depends on scale factor and design resolution…


If you want use this resources in hd mode, you use use a large image.
Use the TexturePacker and set the scale 2.0 my help you.
Files in Resources/hd/ is used in ipad, maybe you can choose you device
as iphone.