I created an animation for a a pickup item that has it twirling up and down in the air. When I tried copying the game object so I could have two, at run time, the new object moved to the place of the original object. I understand why this is happening. Since both game objects are using the same animation, they both have been given the same X and Y coordinates. Is there a way to work around this so I don’t have to remake the animation every time I want to create a new pickup item?
- Create an empty gameobject
- Assign the animation script to it
- Make objects you want to animate children of the parent object with the script
- offset child objects.
Hope that helps