Search Unity

  1. Unity 2018.3 is now released.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. We've updated our Terms of Service. Please read our blog post from Unity CTO and Co-Founder Joachim Ante here
    Dismiss Notice
  4. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  5. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice

Weird Attack Animation When Moving Diagonally

Discussion in 'Animation' started by ajmc123, Jan 11, 2019 at 9:09 PM.

  1. ajmc123

    ajmc123

    Joined:
    Dec 4, 2018
    Posts:
    27
    Hey everybody,
    So, I am making a 2d rpg kinda dealio, and I have had this issue for a while where, when the player is moving diagonally, and I attack at the same time the sword appears in the wrong spot. The sword is a child object of the player that I place in different spots in the animator physically, just in case I wanted to implement more than one sword. It transitions with a blend tree. I assume that the reason the sword shows up in different spots is because the positions of two separate animations are stacking, but I don't know how to fix that. Anyone got any ideas? Any help is greatly appreciated. Thank you!