It is necessary to make a simultaneous animation of the character (Movement ( Transform.posistion ) and tails (two frames through SpriteSheet ). In the Animation window, everything is done at the same time and as a result we get that two frames of the tail are done and then the animation goes further, into motion.

How can you make them independent? So that there was an animation of the tails and motion animation, simultaneously and independently of each other?

Of course, transform.position can be done through scripting, through vectors, but can this be done using animation tools?

  • Similarly, animation? Or animator? And some are confused. - Alexey Shimansky

1 answer 1

You can use some kind of twiner for movements, such as DoTween. You give him the final vector where you need to move the object and for how long, he will move you, at the time of the start of the movement to turn on the animation.

 transform.DOMove(new Vector3(2,3,4), 1); 

In animations it is better not to change the position of the object, but what if you need to move the object in the other direction? or a little further, a little slower?

  • But, after all, walking animation, for example, is in itself a change in the transform.position of the legs and arms)) But not with respect to space, but with respect to a certain point of the object itself. Is it not?)) - Alexey Shimansky
  • Yes, you can change the position of the child objects relative to the parent, but it is better not to change the position of the parent object relative to the world coordinates. If you look at the animations of high-quality models, you can see that the animation of the walk is playing, but the object stands still. The movement itself is produced from code - Shynggys Kengessov
  • This I know) В анимациях лучше не менять позицию объекта - just an object - does not mean the whole character. The arm, in fact, is also an object, only as part of a more global object) well, that's what I am ..... - Alex Shimansky