how to flip the sprite (image) horizontal ? (or vertical)

Hello, guys

I want to know how to flip the sprite horizontal or vertical.

example, the sprite walks to left, the it will go back. how to flip the sprite ?

Thanks.

Shawn [import]uid: 38309 topic_id: 8738 reply_id: 308738[/import]

Hi,

Do something like this…

obj.xScale = -1

That should flip it around to the other way :slight_smile: [import]uid: 12700 topic_id: 8738 reply_id: 31837[/import]

wow, thank you!

:stuck_out_tongue: [import]uid: 38309 topic_id: 8738 reply_id: 31853[/import]