Hi Rodrigo,
Si, you are correct.
When you create an object the first time like this
local rect = display.newRect(0,0,100,100)
the referencePoint is set to the TopLeft and then if you do anything, it changes to Center, why, no idea, but it does. So,
local rect = display.newRect(0,0,100,100)
rect:scale(0.5,0.5)
Now if you try to get the x and the y, what do you think you will get?
print(rect.x,rect.y)
if you want the reference to be in TopLeft co-ordinates, then you need to do is
rect:setReferencePoint(display.TopLeftReferencePoint)
print(rect.x,rect.y)
I hope that helped you clear your doubts.
cheers,
?
[import]uid: 3826 topic_id: 15854 reply_id: 60569[/import]