so i’m glad i finally have a solution to most of my 2d woes, thanks to Neurological and Diviner. but now i’ve been thinking about the subsequent steps - is there a way to attach an object, such as a sword or mace or staff, to another object, such as a hero or enemy? how would i even approach this? i’m worried this could be a really big hurdle.
i can’t just animate a guy with a sword - the guy and the sword have to be separate objects because i have so many items.
i think i had a solution for this in Game Maker, but Unity isn’t Game Maker (though it’s a lot better).
You can simply create an empty gameobject as child in the hand of the animation thing and assing the “sword” or other stuff to that gameobject.
The animation move the hand and the object is dragged as well.
If is a 2D game you can write only the object and the transform parent
Do you have an animation alredy? Add an empty gameobject called “hand” in the player and anime it in the animation as you want. When you assign the item to the hand, the item follow the hand animation