I have to show a line of text on the screen. Each word is a different color.
If i create a var per each word, everything works fine. But i want to concatenate all words in one after i set a color for each of them, so its easily for me to make some transition.to() effects. Otherwise they get really messy!!
Any idea how can i concatenate all them? I tried to by creating a forth variable, but it gives me errors.
local a=nil local b=nil local c=nil a = display.newText("A ", 0, 0,native.System, 14) a:setFillColor(1,0,0) b = display.newText("B ", 30, 0,native.System, 14) b:setFillColor(0,1,0) c = display.newText("C ", 60, 0,native.System, 14) c:setFillColor(0,0,1) mygroup:insert(a) mygroup:insert(b) mygroup:insert(c) transition.to(a, {xScale=1.5, yScale=1.5, onComplete = smallbig}) transition.to(b, {xScale=1.5, yScale=1.5, onComplete = smallbig}) transition.to(c, {xScale=1.5, yScale=1.5, onComplete = smallbig})
Thanks in advance