Search Unity

How to stop an attack animation

Discussion in 'Animation' started by Verdemis, Mar 8, 2014.

  1. Verdemis

    Verdemis

    Joined:
    Apr 27, 2013
    Posts:
    92
    Hello Unity Community,

    i'm new to unity and trying to get into game development with unity. At the moment i'm working at a simple 2D Jump and Run.

    Until now everything worked fine. Now i'm trying to show an attack animation with a sword. Wenn the player hits the attack button the animation starts to play but is going totally nuts. The animation gets played over and over again and doesnt stop anymore.

    So i'm looking for a way to play the animation only once. I hope some could help me :)

    Best,
    Verdemis

    EDIT: I found a solution... i'm know using an Animation Trigger and now it works.
     
    Last edited: Mar 8, 2014