Search Unity

Question 2D - Animation gets stuck at the beginning and never ends

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.
    this is the animator.PNG this is the transition from anystate to death animation.PNG char.PNG

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

    Unrighteouss

    Joined:
    Apr 24, 2018
    Posts:
    599
    You probably need to uncheck the box "Can Transition To Self."
     
  3. eses

    eses

    Joined:
    Feb 26, 2013
    Posts:
    2,637
    "the death animation should play. It starts, but it never ends. It is not a loop."

    Then why show us an image of any state > death transition?

    Have you checked your death > dead transition?