How To Change Rotation Point Of Display Obj

example I have a rect obj.

 

local rect = display.newRect(0,0,100,100)

 

rect:setReferencePoint( display.TopLeftReferencePoint )

transition.to(rect,{timer = 1000, rotation = 100}

 

rect wil rotation to 100 deg with rotation point is top left corner of rect.

 

but if I want to rotation point is set at rp(25,50) of rect . How can I do that ??

You will want to look at the object.xReferenceobject.yReference API’s

 

Hope this helps  :slight_smile:

thanks. it Done! :slight_smile:

You will want to look at the object.xReferenceobject.yReference API’s

 

Hope this helps  :slight_smile:

thanks. it Done! :slight_smile: