Forum rules - please read before posting.

Animation problems

And here is the error I got.

There is an error to mark BearShake (the bear object) as legacy, but BearShake is done through mechanim.

Comments

  • The transition from HumanoidIdle -> Toddler Shake has "Has Exit Time" checked, which means it will wait for the HumanoidIdle animation to finish before running Toddler Shake.

    In the ActionList, you have to Character: Animate Actions that affect the Player simultaneously - only the first should be necessary after Has Exit Time is unchecked.

    The same is true of the Bear: you're animating him in two different ways simultaneously - one by playing the clip directly, another by updating the parameter values. It's best to stick to one approach, but you'll also need a delay in between the two Actions to see the animation play.

    For a one-off animation like the bear shaking, however, you don't need to rely on a Bool parameter that you turn on and then off. Use a Trigger parameter, which causes the animation to fire, and then have the transition back to the normal animation rely only on "Has Exit Time". This way, there's no need to manually affect the Animator once the animation finishes.

    For sequences where you want multiple animations to sync up, it's also possible to rely on Unity's Timeline sequencer to play animations together. A tutorial on this topic can be found here.

  • This answers so much. Thank you.

    New problem though:

  • edited August 2022

    The repositioning issue might be down to the Apply Root Motion box being checked in the Animator.

    Using Root Motion with Timeline can be a bit unwieldy in my experience, and it's something that Unity have changed the behaviour of a few times as they've updated it.

    You might need to look into some of the Animation track's properties, or prevent that particular animation from using Root Motion, to get it working with Apply Root Motion.

    Even having such an issue though shouldn't cause the game to freeze up, though. Are you able to exit Play mode when this happens? You might be able to see where the Player's going by docking the Scene and Game windows side-by-side, but it may be a Unity issue.

  • edited August 2022

    Okay so I unchecked Apply root motion, and it's working now. However, he still teleports to Player Start when the animation plays. It seems to reset his position to 0 0 0.

    Is there any way to change his position in the timeline?

    Figured it out. There is a way to put in the animation position over here:

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.