Search Unity

Question 2D - Animation gets stuck at the beginning

Discussion in '2D' started by Dapphidx, Nov 23, 2020.

  1. Dapphidx

    Dapphidx

    Joined:
    Jun 4, 2019
    Posts:
    9
    Hello, I have made a 2D game and I've set up a button for when I press it, the character gets hurt, when it reaches 0 health, the death animation should play. It starts, but it never ends. It is not a loop.

    I have attached the animator, the transition from anystate to the death animation and how the character gets stuck.
    View attachment 741559 View attachment 741562 View attachment 741565

    I would've attach a small video. But I couldn't get it uploaded.
     
  2. gyuland

    gyuland

    Joined:
    Apr 1, 2020
    Posts:
    1
    Search your created animation clip in your asset folder. If you click on it, in the inspector window there is a check box for looping. Disable it.