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

Run Animation Does Not Return to Idle

Discussion in 'Animation' started by GrungeHamster23, May 18, 2022.

  1. GrungeHamster23

    GrungeHamster23

    Joined:
    Apr 21, 2022
    Posts:
    6
    I am having issues with my animations not working correctly.

    After following the lesson now multiple times I cannot get the animations to work correctly. The player character will start idle, after running the run animation will loop and not return to idle even though I have set the condition for it to do so.

    Does anyone know what can be done about this?
     

    Attached Files:

  2. Unrighteouss

    Unrighteouss

    Joined:
    Apr 24, 2018
    Posts:
    599
    Hello,

    Can you take a screenshot exactly like the one you have, except click on the Run -> Idle transition so we can see what conditions you have set please.
     
  3. GrungeHamster23

    GrungeHamster23

    Joined:
    Apr 21, 2022
    Posts:
    6
    Thank you very much for your time an assitance. Does this screenshot work?
     

    Attached Files:

  4. Unrighteouss

    Unrighteouss

    Joined:
    Apr 24, 2018
    Posts:
    599
    Hey, still can't see the conditions, can you scroll down in the inspector?

    RunToIdle.jpg
     
  5. GrungeHamster23

    GrungeHamster23

    Joined:
    Apr 21, 2022
    Posts:
    6
    Sorry about that. Does this work? RunToIdle.jpg
     
  6. Unrighteouss

    Unrighteouss

    Joined:
    Apr 24, 2018
    Posts:
    599
    Yep, that works, thanks.

    So looking at your original screenshot, we can see that "isidle" is false, so there's no reason to expect the transition to fire. The "isidle" parameter needs to be set to true to transition back to idle from Run:

    Run Animation Error.jpg
     
    GrungeHamster23 likes this.
  7. GrungeHamster23

    GrungeHamster23

    Joined:
    Apr 21, 2022
    Posts:
    6
    Thank you very much for your help. I am completely new to the concept of game design and I am taking a course to learn. I was simply following the steps of the course and I must have missed that part.
     
    Unrighteouss likes this.