- Home /
How do I make it so that a walking animation plays for the enemy AT THE SAME TIME it is moving toward the player?
I have been stuck on this for a while. I have it so that "isKinematic" starts out as true for the enemy's rigidbodies until (you shoot its colliders and) it dies as a ragdoll. When it dies, "isKinematic" turnes false, and its animator turns off.
I'm having trouble because in order to make the enemy's walk animation play, "isKinematic" must = true, but also, if "isKinematic" = true, then I can't code it to move toward the player.
Also, I should probably let you guys know that I can't use the method where you make a parent for the enemy and put the walking code on that parent (for reasons too long to explain). I pretty much need it so that the code to make the enemy move is on the enemy game object that the animator is present on.
Your answer
![](https://koobas.hobune.stream/wayback/20220612164213im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Enemy AI Problem 0 Answers
Help with Enemy AI 1 Answer
How To Make Enemy Move Around 0 Answers
Why is my enemy not doing his run animation? 1 Answer
Enemy following the target with ITween 2 Answers