Search Unity

Weird Attack Animation When Moving Diagonally

Discussion in 'Animation' started by ajmc123, Jan 11, 2019.

  1. ajmc123


    Dec 4, 2018
    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!