How would I go about creating vertical text in Corona? I tried:
local advanceTxt = display.newText("A\nD\nV", 278, 203, native.systemFont, 15)
This doesn't affect the text at all. I dont want to rotate the text but to "stack" letters on top of eachother.
1 2 3 4 5 6 7 | Example: A D V A Thanks in advance, N Dacri Burdan C E |
1 2 3 4 5 6 7 8 9 10 | local myString = "advance" local len = string.len(myString) local textArr = {} for i=1,len do local str = string.sub(myString,i,i) textArr[i] = display.newText(str,0,0,nil,24) textArr[i].x = display.contentWidth * 0.5 textArr[i].y = 25 * i str = nil end |
Thanks a ton!! It worked great!
glad it helps
:)
views:1530 update:2011/10/5 21:23:48