shortcodes.lua 都是调用这个的.
function Node:pos(x, y)
self:setPosition(x, y)
return self
end
Cocos2d: LUA ERROR: :0: error in function ‘setPosition’.
argument #2 is 'number'; 'const CCPoint' expected.
shortcodes.lua 都是调用这个的.
function Node:pos(x, y)
self:setPosition(x, y)
return self
end
Cocos2d: LUA ERROR: :0: error in function ‘setPosition’.
argument #2 is 'number'; 'const CCPoint' expected.
tolua++ 导出里面,不是有么
tolua_function(tolua_S,“setPosition”,tolua_Cocos2d_CCNode_setPosition00);
tolua_function(tolua_S,“setPosition”,tolua_Cocos2d_CCNode_setPosition01);
我明白了 是ccs的widget里面木有