I'm currently working on a bit of a passion project using the new isometric grid tilemap and ended up thinking ahead to some functionality I'd like to implement but can't quite get the logic down in my head. Similar to how in Stardew Valley you can pick up an item in 2D and hold it over your head, how would I go about doing that in an isometric game? The item has sprites for all 8 directions along with the main character, and the movement script for the character has variables that I could use as it keeps track of the current direction the player is facing (as well as what animation to play), so I can see how I'd keep the item facing the right direction, but how would I get the item "on top" of the player as they run around with it? Anyone got any ideas? Perhaps there's already a built-in way to do this?
I assume you can make the object a child of your player object, temporarily. You can find toturials, here's one I've found in a quick search that I think might help you. https://answers.unity.com/questions/632792/how-to-make-an-object-a-child-of-another-object-sc.html
Huh... That makes sense lol. Once parented though, how would I make it look like the character is holding it above his head? I'm assuming I'll have to transform.Translate(Vector3....) it as needed? Thanks for the help! I knew it was gonna be simple and I was overthinking it >.>