【发布时间】:2014-03-24 06:40:34
【问题描述】:
您能帮我解决以下问题吗?我正在转换使用以前版本的 Corona 构建的应用程序。它一直告诉我“object:setReferencePoint() 仅在 v1Compatibility 模式下可用。请改用锚点。”
_G.buttonShowInfo = display.newImageRect( _G.imagePath.."info.png", display.contentWidth*0.12, display.contentHeight*0.08)
--_G.buttonShowInfo:setReferencePoint( display.BottomLeftReferencePoint )
_G.buttonShowInfo:setReferencePoint( display.BottomRightReferencePoint )
我尝试将它切换到以下,但没有运气。你能指出我正确的方向吗?
_G.buttonShowInfo = display.newImageRect( _G.imagePath.."info.png", display.contentWidth*0.12, display.contentHeight*0.08)
_G.buttonShowInfo:info.anchorX = 0.0;
_G.buttonShowInfo:info.anchorY = 1.0;
【问题讨论】:
-
右下角是 1, 1 而不是 0, 1
-
@Lukis 你应该回复它作为可能的答案,而不是评论。
标签: android ios mobile app-store coronasdk