Hi,
I need to rotate an object from it center and right after that change it’s reference point for constant scaling function.
The problem is that changing the reference point afects the rotation no matter the order you call the functions. See example where the object is roteted from the new reference point altough “rotate” was called before.
local rect=display.newRect(300,300,50,50)
rect:rotate(45)
rect.xReference=display.contentCenterX
rect.yReference=display.contentCenterY
How can I solve this situation?
Thanks! [import]uid: 76413 topic_id: 23868 reply_id: 323868[/import]
[import]uid: 76413 topic_id: 23868 reply_id: 96441[/import]