Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Force Sprite to Face One Direction During Movement

Discussion in 'Animation' started by kevinkn408, Dec 20, 2018.

  1. kevinkn408

    kevinkn408

    Joined:
    Dec 20, 2018
    Posts:
    4
    Hi Unity forums, I've scoured the internet for this one so hopefully I can get some help here. I'm having trouble getting my character to face a fixed direction during movement. Rather than the sprite flipping around, I need to have my character be looking one direction, similar to how it's done in fighting games. Is there something in the sprite inspector that I am overlooking? I haven't animated a proper "walk back" animation yet, so I am confused as to whether or not this is an animation issue or a parameter in the way in which the player controller interacts with the sprite. Either way, I have no idea how to do this. Sorry kind of new, I appreciate any help given. Thanks.
     
  2. knobblez

    knobblez

    Joined:
    Nov 26, 2017
    Posts:
    223
    This sounds too simple but if you flip the X Scale from 1 to -1, it flips your animaton. I created mirrored animations before I learned about this lmao hopefully you haven't done the same.