- Home /
How To Animate In Engine Correctly?
How can I create animations in engine with Unity correctly? I know how to record and make my animations in the animation window, but I want to be able to re-use the same game object that I created with animations and make copies of it(it is an enemy game object, and there are several of them in the scene). However when I duplicate and put the copy say 10 X axis away, it flies all the way to the original game object.
It does this because the original game object is what I created the animations with, so it remembers the exact coordinates of it and goes back to it. How can I prevent this? In one of the animations, I move the X axis of the game object in each frame to make it move forward(because it's attacking). So I know why this is, but I don't know how to prevent it.
I hope I'm making sense to all of you(it's very late where I live so I can't think correctly). Anyways please if you can help me. It's been a while since I've asked for help on this website.
Answer by alok-kr-029 · May 13, 2015 at 11:45 AM
It seems you want to reuse the animation , so whenever you make the animation in unity first take a empty gameobject and make the object the child of the empty gameobject .and put the object at 0,0,0, WRT the empty gameobject and make the animation ... with this you can reuse the animation...and by dragging the parent gameobject to anywhere ..
Your answer
![](https://koobas.hobune.stream/wayback/20220613195507im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Instantiating multiple prefabs with animations all appear at 0,0,0 3 Answers
unity3d animation co ordinates changes 0 Answers
Animator with Collider (2D) 0 Answers
Basic Animation Mecanim add animation to existing character 2 Answers
How do I have my animated character have a weapon switching system? 0 Answers