Jump to content

Horizontal Sprite Flip


oronbz
 Share

Recommended Posts

Hello,

 

Is there any way to make a sprite flip its animation from right to left and vice versa other than making a "left" animation for every animation (this would take seconds in the animation tool, but would double up memory usage and complicates code)?

 

I've seen this in other JS engines like ImpactJS where they have "flip" property to their GameEntity which you can set to true or false.

Link to comment
Share on other sites

  • 1 year later...
  • 5 months later...

Multiplying the scale on the x/y may achieve flipping, but it comes with some unwanted side effects. My images are showing negative widths/heights when flipped. This creates problems when positioning the image on the map. Any workarounds? 

 

I would've use the absolute values when looking at height/width to workaround this.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...