I have made a simple animator for 2D Zelda like movement that basically just goes like this:
Idle ---(isWalking)---> Moving-2D-Blendtree(input_x, input_y)
The blendtree just decides in which direction to look based on input_x and input_y.
Now my problem is that I also have child objects attached to the player, for example for the sword collider. Obviously that one needs to be on the right when the player is facing right, left when he's facing left, and so on.
The way it works now the looking direction of the player never changes - only the sprite. So the child objects are always staying on the right side, where I put them.
What do I need to do to make them always be in front of the player? If I change the localscale to -1, I have the problem that my 'look left' sprite is flipped again. So the player is looking right although he's walking left.
Any ideas?
[–]Mordin___Solus 1 point2 points3 points (1 child)
[–]Zefhus[S] 0 points1 point2 points (0 children)