用的2.2.6版本的怎么解决这个错误local visibleSize = cc.Director:getInstance():getVisibleSize() -- 获取整个手机可视屏幕尺寸 local origin = cc.Director:getInstance():getVisibleOrigin() -- 获取手机可视屏原点的坐标,屏幕的左上角 local finalX = origin.x + visibleSize.width / 2 + x * cGridSize *
local visibleSize = cc.Director:getInstance():getVisibleSize() -- 获取整个手机可视屏幕尺寸
local origin = cc.Director:getInstance():getVisibleOrigin() -- 获取手机可视屏原点的坐标,屏幕的左上角
local finalX = origin.x + visibleSize.width / 2 + x * cGridSize * scaleRate
local finalY = origin.y + visibleSize.height / 2 + y * cGridSize * scaleR