CCCallFuncN missing from 0.12

Along with several other methods, it appears all of the lua bindings for CCCallFuncN is missing in 0.12.

ALso, within CCCallFuncN, the init method actionWithScriptFuncName has been removed.

If this is not a mistake, what is the proper way to call a method in an action sequence.

if this is a mistake, what can we do to fix it?

Thanks,
~Jonathan

May be this thread can help you
http://www.cocos2d-x.org/boards/11/topics/9147

Not sure I understand. Is this a third party library that now takes the place of CCCallFuncN? Is it included in cocos2dx or do I need to download this? How do I add a function call into the middle of a CCSequence chain?

We are planning to start a project with Lua in few days, but in the research of the newest version we realized missing CCCallFuncN problem.

Anyone knows about it?

I think there should be a alternative one after removing the previous one.

I do not think it’s a solution…
Minggo Zhang wrote:

May be this thread can help you
http://www.cocos2d-x.org/boards/11/topics/9147

Try something like this:

class CCCallFuncLua : public CCActionInstant
{
public:
CCCallFuncLua() {callBackFuncInLua_ =0; }
virtual ~CCCallFuncLua() { unregisterScriptHandler();}

static CCCallFuncLua * actionWithLuaFunction(int callback_func)
{
CCCallFuncLua *pRet = new CCCallFuncLua();

if (pRet) {
pRet~~>unregisterScriptHandler;
pRet~~>callBackFuncInLua_ = callback_func;
pRet->autorelease();
return pRet;
}

CC_SAFE_DELETE(pRet);
return NULL;
}

void unregisterScriptHandler(void)
{
if (callBackFuncInLua*)
{
cocos2d::CCScriptEngineManager::sharedManager->getScriptEngine->removeLuaHandler;
callBackFuncInLua* = 0;
}
}

virtual void execute()
{
if(callBackFuncInLua*)
cocos2d::CCScriptEngineManager::sharedManager->getScriptEngine~~>executeFunctionByHandler;
}
virtual void update
{
CC_UNUSED_PARAM;
this~~>execute;
}
protected:
int callBackFuncInLua*;
};
Steve Kim wrote:

We are planning to start a project with Lua in few days, but in the research of the newest version we realized missing CCCallFuncN problem.
>
Anyone knows about it?
>
I think there should be a alternative one after removing the previous one.