CCNode:removeFromParent not in 2.2?

CCNode:removeFromParent not in 2.2?
0.0 0


Hi, I tried to use removeFromParent on a layer node in 2.2, it says I’m attempting to call method nil. Is this method not wrapped for Lua? If I manually get the parent and remove the child, it works. I thought it would be easier to use the single method to do that.


You can add the removeFromParent function to the CCNode.pkg.If there are any problems, please let me know in time.


It has changed to removeFromParentAndCleanAll(). Pls look for it in LuaCocos2d.cpp.