Hi,
I am trying to reuse a text object, likes expressions recomends in their site, but I need to change its position runtime, and when I do:
MyTxt:setProperties({x = 825, y = 244})
It crashes, please somebody knows why?
Thanks
Label: corona android iphone ipad building error inmobi problem display screen View image tableView failed object physics touch button game lua config event listener |
Hi,
I am trying to reuse a text object, likes expressions recomends in their site, but I need to change its position runtime, and when I do:
MyTxt:setProperties({x = 825, y = 244})
It crashes, please somebody knows why?
Thanks
After you've declared it, you should be able to simply use:
1 2 | MyTxt.x = (your x location) MyTxt.y = (your y location) |
Right, Text Candy text objects can be used like common display objects, so you can position and rotate them like any other display object:
MyText.x = 100
MyText.y = 150
MyText.rotation = 180
Ok, its working now thanks