Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Weird jump animation bug I don't know how to fix

Discussion in 'Animation' started by choptop84, Aug 10, 2021.

  1. choptop84


    Aug 7, 2021

    There is a weird glitch I am having with my game, I know that the code is fine, but for some reason the jump animation ends before I even get lift off, another weird thing is that it plays the animation when I press space again in the air!

    I don't even know what is wrong or how to fix this...
    The problem im having: I don't know what I don't know...
  2. Unrighteouss


    Apr 24, 2018

    To begin, as a piece of advice, even if everything seems to be working flawlessly, there still may be issues with your code that you haven't noticed yet. If things aren't working, it doesn't make sense to assume that your code is fine.

    If you're using the animator and setting up transitions manually, the problem could lie there. If you're using Animator.Play() to control all of your animations, then the issue is probably in the code.

    If you post the script that contains your jump logic here, someone will most likely be able to help you. Posting some images with your transition logic (if you're using transitions) would also be helpful.