Flip Skeleton towards walking direction
Oct 30, 2021
2D Mobile Game
Objective: Flip Skeleton to left when walking left and to right when walking right.
First of all create a reference to the Sprite renderer of the sprite where we can flip the player in x/y axis; in this case x-axis.
Then create a condition which check the target destination of the skeleton and flip according to the direction. Be sure to place it above the condition where you change the target to make sure that the player doesn’t flip before idle animation.
And this is the final result.