Search Unity

Diagonal Movement + Attack Causes 2d object to Move.

Discussion in 'Animation' started by ajmc123, Dec 14, 2018.

  1. ajmc123

    ajmc123

    Joined:
    Dec 4, 2018
    Posts:
    28
    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. 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!