- Home /
2D character animation walk left and right
I went pretty long without asking a question but now i am stumped. I am practicing with a 2D sprite sheet with kirby. I made an animation with kirby walking right. My question is if i want to make a walk left animation do i need to make a walk left animation or is there some thing that can make the animation negative along the Y axis.
Generally speaking you can just set the x-scale to -1. However, bug alert: if you rotate a child object with a collider, the collider is not positioned correctly. (Rotating the same transform that has the -1 scale does not create such problems.)
Answer by Hachley · May 08, 2014 at 10:14 PM
You can try flipping/reversing the scale of the sprite simply by changing its X(width) scale from positive to negative. It will keep it's original width scale but will now be mirrored.
Check this out: http://forum.unity3d.com/threads/35974-Flipping-Texture2D-Image-within-Unity
Answer by hippysniper · May 08, 2014 at 10:14 PM
If scaling in unity to the -1 does not work why don't you splice the current sprite sheet and simple invert them there, unity will pick up the new sprites and there will be no offset.