Search Unity

Why my sprite acts weird in game?!?

Discussion in 'Animation' started by bbQsauce, Jun 10, 2015.

  1. bbQsauce

    bbQsauce

    Joined:
    Jun 29, 2014
    Posts:
    53
    So, i have a green sprite guy which has a sword as child. I have animated its arm and the sword in the same animation which i called sword_swing. The arm of the guy is a different sprite that substitute the previous one, while the sword is the same sprite and during the animation it changes rotation and position to make it look like it's swinging.
    The problem is it doesn't work properly when i start the game to test it, while if i click play on the animation window it works fine.

    In the animation window it works fine:


    When i start the game to test it:


    Looks like the position is a bit out of phase or something.
    What's causing this? How do i fix it?

    Thanks in advance.

    Editor screenshot:
     
    Last edited: Jun 10, 2015