2013-03-28 189 views

回答

0

也许这将工作:

local textObj = display.newText(.....); 
textObj:setReferencePoint(display.CenterRightReferencePoint); 
textObj.x = 100; 
0

在新版本有图形2.0科罗娜SDK,你需要这样做:

rowScore.anchorX = 1 

rowScore是你的变量与display.newText创建。 这里有一个完整的例子:因为它工作在Windows模拟器,但它不工作在Android上我没用过的align="right"参数

local rowScore = display.newText({ 
    text="My Score", 
    fontSize=40 
}) 
rowScore.anchorX = 1 
rowScore.x = 30 
rowScore.y = 100 

通知。