[Resolved] Adding text to another text?

Quick question, sorry for being short. Is this possible

corona.text = "bla bla bla more bla" + test.text + "and the bla continues"  

Of course this exact piece doesn’t work, but can I achieve the same concept in any way? Thanks in advance [import]uid: 77199 topic_id: 29688 reply_id: 329688[/import]

[lua]corona.text = “bla bla bla more bla”…test.text…“and the bla continues” [import]uid: 160941 topic_id: 29688 reply_id: 119175[/import]

Knew I saw it somewhere, just forgot the exact syntax. Tyvm! [import]uid: 77199 topic_id: 29688 reply_id: 119176[/import]

Something a little more interesting, is this possible? Not really working for me at the moment. I’m trying to do something like this

test:setTextColor(255,0,0)  
corona.text = "bla bla bla more bla"..test.text.."and the bla continues"  

So all the bla’s text would be black, everything except what’s in test.text, that would be red. [import]uid: 77199 topic_id: 29688 reply_id: 119296[/import]

Unfortunately, the entire text object has to be a single fill color. So, to accomplish the effect you’re describing, you could great a text object for the first “bla blas” in black, then another text object for test.text in red, and then another text objects for “and the bla continues”. You would then arrange their coordinates so it looks on screen like a single string of text.

  • Andrew [import]uid: 109711 topic_id: 29688 reply_id: 119310[/import]