Search Unity

Advice needed with animation states.

Discussion in 'Animation' started by BlitzBlitzCandy, Aug 21, 2019.

  1. BlitzBlitzCandy

    BlitzBlitzCandy

    Joined:
    Jun 20, 2019
    Posts:
    11
    Hi! I just started to learn Unity as I wanted to make games for a long time.
    Right now i'm dealing with animation and different animation for each weapon equipped.

    However, the longer I try to logic myself out of this, the more I feel like there must be a smarter and efficient way of animating the change states.

    Any advice would be immensely appreciated. Thank you!
     

    Attached Files:

  2. KingaO

    KingaO

    Joined:
    Apr 16, 2018
    Posts:
    19
    Hi,
    you could use blend tree for smooth transitions between walking/running and use layers and avatar mask for weapons.

     
  3. BlitzBlitzCandy

    BlitzBlitzCandy

    Joined:
    Jun 20, 2019
    Posts:
    11
    The game I'm currently making is 2d. However thanks for the layer advice. I'll try to work on it!
     
  4. Kybernetik

    Kybernetik

    Joined:
    Jan 3, 2013
    Posts:
    2,570
    If you are using 2D then you don't need transitions at all. Just set up your states and call animator.Play("State Name").

    Or if you want to avoid the need for Animator Controllers, you should check out my Animancer plugin (link in my signature). It has lots of detailed examples to explain how to use it.