[Resolved] is this normal behaviour ?

see this code why it is going from right to left even though i have set reference point to topleft because i am flipping the rect ? (same for images)
[lua]local b=display.newRect(0,0,1024,500)
b.alpha = .5
b:setReferencePoint(display.TopLeftReferencePoint)
b.xScale=-1
b.x=512
b.y = 300[/lua] [import]uid: 10884 topic_id: 23290 reply_id: 323290[/import]

Yes, that is why - the flipping.

Use:
[lua]b:setReferencePoint(display.TopRightReferencePoint)[/lua]

Or else make adjustment based on flipping, eg;
[lua]b.x= 100+b.width[/lua]

Peach :slight_smile:

*Moving to appropriate forum as this is not a bug. [import]uid: 52491 topic_id: 23290 reply_id: 93468[/import]

i know this solutions or work arounds :slight_smile:
just thought it is not expected so…

:slight_smile: [import]uid: 12482 topic_id: 23290 reply_id: 93481[/import]