Hi guys,
It’s been a while since I last played with Corona, but I have returned and fell in love with it again.
I ran into an issue though, one that I’ve been spending far too much time on to fix, but I am completely lost.
I’m trying to get a newRetinaText() to align left (after changing the text), but it seems like the longer the new string is, the further tot he right the text is placed.
This is the code, throw it in a lua file and see for yourself
local randomText = display.newRetinaText("test", 0, 0, system.defaulFont, 20)
randomText:setReferencePoint(display.TopLeftReferencePoint)
randomText.x = 100
randomText.y = 200
function randomText:enterFrame(event)
self.text = "monkey"..math.pow(10, math.random(0, 10))
self:setReferencePoint(display.TopLeftReferencePoint)
self.x = 100
end
Runtime:addEventListener("enterFrame", randomText)
I’m sure I’m overlooking something simple, but I’m afraid I’ll go crazy if I keep trying.
Thanks for any help 
Nick [import]uid: 7980 topic_id: 21033 reply_id: 321033[/import]