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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

How to set up player animations correctly?

Discussion in '2D' started by Rascal93, Jul 22, 2015.

  1. Rascal93

    Rascal93

    Joined:
    Jul 7, 2015
    Posts:
    3
    Hello Gentlemens.

    Greetings everyone! I'm new here aswell as Unity for me. I want to apologize in advance for my bad English. I'm from Latvia.
    Hopefuly we will understand each other.
    Ok, so my situation right now: I have player with working idle, run and jump animations. My player can shoot projectiles with these animations, but i want to use correct animations for shooting porpuse. So, how to set up animations like this: run shoot in the same time and idle shoot same time. I have all the needed animations but please help me set it all up.

    Regards, Rascal.
     
  2. itzclay36

    itzclay36

    Joined:
    Apr 11, 2015
    Posts:
    25
    Is this a sprite animation or rigged animation?

    I just used sprite animations for my game.. I made animations for each condition. I have multiple attack animations. 1 for idle, 1 for walking, 1 for running.

    However, if you are using the character rigging inside the game, then there are some blending options available. That's a good bit more advanced, and not something I've done myself. You can find tutorials on it.
     
  3. Rascal93

    Rascal93

    Joined:
    Jul 7, 2015
    Posts:
    3
    It's a sprite animation. I forgot to mention - i'm making this 2d platformer for Android, i guess its a bit difficult to make these animations because i have left/right arrows for movement and shoot button for shooting. All i want is when player is Idle, i press shoot button - he starts idle-shoot animation, and when i start running and at the same time press shoot button - he starts run-shoot animation, but when i release shoot button and keep pushing left/right button - player only runs.
    Sounds simple but i'm new to Unity.

    I will appreciate any help. Thank you.
     
  4. Rascal93

    Rascal93

    Joined:
    Jul 7, 2015
    Posts:
    3
    itzclay36, you have made great game! Looks like there is a lot of things that i will need for my game aswell. Be ready to answer for my questions! ;)
     
  5. itzclay36

    itzclay36

    Joined:
    Apr 11, 2015
    Posts:
    25