Change x and y properties of a TextCandy object

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

views:1584 update:2011/10/14 9:11:21
corona forums © 2003-2011