Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Does Corona offer flip image functionality?
Started by vb66r55 Oct 01 2019 02:51 PM

- - - - -
3 replies to this topic

Best Answer Rob Miracle , 01 October 2019 - 03:16 PM

You can set the Y scale of the object to -1 to flip it.

 

object:scale(0, -1)

 

Rob

[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

vb66r55

[GLOBAL: userInfoPane.html]
vb66r55
  • Enthusiast

  • 67 posts
  • Corona SDK

Greetings,

 

I am curious, does Corona have provide horizontal flipping?

 

If this feature is available, I can use only a set of right-to-right combat animations to achieve a left-right battle.

 

However, I can't find the function of turning over Corona.

 

Someone can give pointers? :ph34r:

 

Thanks.

Attached Thumbnails

  • TheQuesition.png


[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,615 posts
  • Enterprise

  Best Answer

You can set the Y scale of the object to -1 to flip it.

 

object:scale(0, -1)

 

Rob



[TOPIC: post.html]
#3

vb66r55

[GLOBAL: userInfoPane.html]
vb66r55
  • Enthusiast

  • 67 posts
  • Corona SDK

Thank Rob. :D

 

I use object:scale(-1, 1) to horizontal flip.

 

I almost made two files. :lol:


[TOPIC: post.html]
#4

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,615 posts
  • Enterprise

You're right, you flip the X scale around the Y axis. 

 

Rob


  • vb66r55 likes this


[topic_controls]
[/topic_controls]