I have a quick question regarding Sprite 2D animation that I couldn’t find anywhere specifically for the answer:
I have a sprite with walking animation on the right. However, I obviously want to flip the animation to the left when it goes to the left (2D side scroller).
I can easily flip the sprite using transform.localscale.x , however, which only flips the sprite. Not an animation clip. (This no longer happens in Unity)
Thus, while the sprite is flipped, the moment the animation clip starts playing, it flips back to the right (since I only have one animation clip designed for the right sprite).
Is this the only way to do this to flip sprites in Photoshop, or is there a way to do this in Unity?
Thanks!
UPDATE: With the actual versions of the unit, if you scale the transformation by multiplying it by -1 , the animation frames will also scale.
c # animation 2d unity3d sprite
Jestus
source share