Forum rules - please read before posting.

Player and Animator Component Behaviour

Hi! I'm getting some very unusual behaviour in my project when I attach an Animator Component to a game object that also has a Player component attached.

I'm using the Straight To Cursor movement method and when I click a spot on the ground the Player moves there and then quickly shoots back to its original position.

If I remove the Animator component then the movement works exactly as expected; the Player moves smoothly to the clicked location and remains stationary. The Animator is completely blank with no reference to any Animation Controller or Avatar.

I'm on Unity version 2022.1.23f1and AC version 1.76.0

Thank you

Comments

  • Is this for a 2D or a 3D game?

    What is your Player's "Animation engine" set to, are any other scripts involved, and is your Animator's "Apply Root Motion" box checked?

    If you can share a screenshot of your Player's full Inspector (with the Animator attached), I'll try to see if I can spot what's wrong. Check the Console window as well - are any related messages appearing?

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.