Forum rules - please read before posting.

Animations don't cycle from idle to walk

I've got my animation tree set up with transitions and a Float Speed parameter. All values are set in accordance with the tutorials I'm trying to follow.

When I hit play, I can move my player around the area, but only the idle animation plays.

How could I go about diagnosing this problem?

Comments

  • If you double-click on the Player's Animator component's Controller field to bring up the Animator window while Unity is in Play mode, it should show the "live" controller so that you can see the current state of it - both in what animation is being played, and the values of its parameters.

    Check to see if your "Speed" parameter is changing when your Player moves. If it is, check the controller's transitions to see how it's being used to cause the walking animation to play. If it's not, check that your Player's Inspector has the "Move speed float" field set to the name of your Speed parameter.

    If you've been following the video tutorials, a text tutorial just for this topic can be found here.

  • Looking at the animator window as it's playing, the speed float doesn't change at all but is the same name on my character. I tried a different name too with no change. I'm following a tutorial but trying to adapt it to my game at the same time. Would an improperly I guess "formatted" character file have anything to do with this not working? I initially had a hard time getting the character wizard to recognize it properly, though it seems to have worked now.

    https://imgur.com/zgyXGxT
    https://imgur.com/9lFBwPc
    https://imgur.com/GCylqOG
    https://imgur.com/xW337EC
    https://imgur.com/jPeCnmH

  • Formatting is important, yes - the parameter names are case-sensitive, and any space " " characters afterwards will need to match up.

    Your transitions all have "Has Exit Time" checked, though, which means it won't transition until the animation is complete. You may still have an issue with the Speed parameter, but these options will need to be unchecked as well.

    If the issue persists after doing so, what of the Player's Inspector, and does the Console report anything amiss? It should let you know if it's trying to control a parameter that's undefined.

  • Unchecking "Has Exit Time" worked! Thank you!

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.