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.
CCNode:removeFromParent not in 2.2?
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.