Search Unity

Animation issues

Discussion in '2D' started by arpeggi5150, Sep 12, 2022.

  1. arpeggi5150

    arpeggi5150

    Joined:
    May 23, 2021
    Posts:
    27
    Rigidbody Not Working On Animation With Sprite

    I have created a super simple dino run clone where the charactor has 3 states,
    Running (default state and animation)
    Jumping
    Ducking

    Before applying the animations i just used a single sprite and tested all the functions.
    Running, jumping and ducking are all functioning properly. Proper jump height all that good stuff.

    But when I animate the jump state instead of jumping up as normally expected the jump sprite sits dead in place. I can tell from debug messages that the colliders that trigger the end of the jump function are still working, so it seems like an animator specific issue.

    Ducking and Running work fine functionally, animations and all.

    not sure what to do.

    Can add screenshots if i'm not being clear. Thanks for any help in advance!
     
    Last edited: Sep 12, 2022
  2. arpeggi5150

    arpeggi5150

    Joined:
    May 23, 2021
    Posts:
    27
    Figured out that if you check "Apply Root Motion" inside the animator on the object the sprite follows the motion. This solved my jump issue but now my crouch is misaligned with the original sprite.