Animators glitch my movement

. I’m making a 2D game and when I click to move, if the animator is active, the player doesn’t move. However, when it is deactivated, the player can move. How can I make the player walk while the animator is active? (I’m calling the animations from the script, not changing parameters). Another problem is that when I run an animation, the player is transported to the location where the last animation occurred (I made the animations using Unity’s movement recording function)

1 Answer

1

Hello @pedrocardosolima2010, I just had a similar issue. For me however I only needed to rotate my sprite, so I did the rotation and deleted the location keyframes. Depending on what you’re try to do, this might work.

Alternatively, if you made the sprite yourself in an external software, you could animate it there, and set up the camera, and render the animation as a set of PNG’s, then bring them into Unity, and drag them into the animator. This would create an animation without actually shifting your location.
I hope that this helps. :slight_smile:

Eu não posso tirar a localização pois nessa animação o player deve se movimentar durante ela, além de rotacionar. De qualquer forma, obrigado pela resposta :slightly_smiling_face: