我在xcode4.6搭配coco2d-x 进行如下操作就报错,谁可以告诉这是为什么啊。
具体图片是这个样子嘀
请复制下整个.H文件 很有可能是你需要重写的方法没有写.
#ifndef HELLOWORLD_SCENE_H
#define HELLOWORLD_SCENE_H
#include “cocos2d.h”
#include “cocos-ext.h”
using namespace cocos2d;
using namespace cocos2d::extension;
class HelloWorld : public cocos2d::CCLayer
{
public:
// Method ‘init’ in cocos2d-x returns bool, instead of ‘id’ in cocos2d-iphone (an object pointer)
virtual bool init();
// there's no 'id' in cpp, so we recommend to return the class instance pointer
static cocos2d::CCScene* scene();
// a selector callback
void menuCloseCallback(CCObject* pSender);
// preprocessor macro for "static create()" constructor ( node() deprecated )
CREATE_FUNC(HelloWorld);
CCArmature* armature;
};
#endif // HELLOWORLD_SCENE_H
这是整个H文件。请帮忙看一下。
谁能提供一下,在mac环境下使用cocos2d-x,将cocostudio中导出的三个文件做成动画的demo。谢谢阿

我们这里有大量的demo
https://github.com/chukong/CocoStudioSamples
还有对应的教程
http://www.cocoachina.com/bbs/read.php?tid=194293
你的顶楼的图片裂了,
然后第二楼的图片中, 可能是因为你调用了一个不存在的ccarmature.
你需要在include对应的studio的头文件.并且调用using 对应的namespace.
另外你没有说清楚你的2d-x版本.
2.x, 3.x调用方法区别可能有点大.
再给你列一个3.0的demo
https://github.com/chukong/CocoStudioSamplesBasedOnCocos2d-x3.0
有道是, demo虽好, 写来不易, 且看且读切珍惜
多谢你的无私分享。我会且看且读且珍惜的。