Search Unity

Adding 2D jump animation

Discussion in 'Animation' started by Ericode, Nov 22, 2017.

  1. Ericode

    Ericode

    Joined:
    Nov 12, 2012
    Posts:
    2
    Hello, I have a single 2D jump animation that has the player jump in the air and back down to the ground. How can I add this to my game? Currently I have a trigger and I am setting the animator.setTrigger("jump") but the character jumps twice, not once. It is playing the animation until the character lands then it switches to the idle position. Is there a way I can use this animation and not have the character jump twice?