Sprite direction

Apologies if this was covered before. I reviewed the Lime docs and Corona docs but other than rotation nothing jumped at me.

Question. Is it possible to flip an animated tile so it can go back for example? I can reverse my images and load them into my tileset as the go-back animation but this obviously would double up the resource consumption on device. Is there a clever way of settign it once facing one way but programmatically making it face the other way?

Thanks [import]uid: 11904 topic_id: 4718 reply_id: 304718[/import]

You would want to do something like this:

  
tile.sprite.xScale = -1  
  

This will flip it horizontally, use yScale for vertically and set it back to 1 to flip it back. [import]uid: 5833 topic_id: 4718 reply_id: 15002[/import]

Great! Knew there would be a way. Thanks. [import]uid: 11904 topic_id: 4718 reply_id: 15015[/import]

No problem :slight_smile: [import]uid: 5833 topic_id: 4718 reply_id: 15031[/import]