帧事件在编辑器里怎么用呢? 直接写回调的函数么?
您好,您需要在指定的帧给指定的骨骼添加“帧事件”,属性内添加一个字符串即可,该字符传将在帧事件回调函数内当做参数传入。
感谢hanrea
cocos2d 2.2.2中添加注册 setFrameEventCallFunc(this,frameEvent_selector(Layer_GameFight::onFrameEvent)); 报错怎么处理啊?
error C2440: “类型转换”: 无法从“void (__thiscall Layer_GameFight::* )(cocos2d::extension::Bone *,const char *,int,int)”转换为“cocos2d::extension::SEL_FrameEventCallFunc”
CCBone作为参数