Hello.
Really new to 2D unity and I’m going through a lot of early learning pains right now.
I’m currently trying to make a character crouch AND bring the childrens with the character.
For the details, I have a 2D side scrolling character that holds/shoots a gun. I put Shoulder/Gunpoint as childrens for the character and calculate the angle for the gun and where to fire.
I also made the character able to crouch by resizing the collider size and changing the character to a crouching sprite.
The problem is when the character crouches, the Shoulder/Gunpoint doesn’t come down with the character. I would expect any associated children to move down with the collider, but I guess that was a wrong assumption.
So the question is, how do I make these children GameObjects come down with the crouched character? For now, I probably only need to make the Shoulder point to come down, but I also thought this would be a bigger problem when I expand more points for my character in the future(like when I add some attachpoint for clothes or other gear).
Maybe I should take a different approach for the character?
Thank you so much in advance.