Hello there! Please help!
I ran into this problem. I'm using an animation player with a bunch of different sprites (8 to be exact) and all of the animations go into the animation tree to make walk/jump/etc amimation.
But the little robot is facing right and when I'm walking left and i use Flip_h this way I run into a problem:
func _physics_process(delta):
if Input.is_action_just_pressed("ui_right"):
$body.flip_h = false
get_node("body/head").flip_h = false
get_node("body/head/front feather").flip_h = false
get_node("body/head/back feather").flip_h = false
get_node("body/back arm").flip_h = false
get_node("body/front leg").flip_h = false
get_node("body/front arm").flip_h = false
get_node("body/back leg").flip_h = false
elif Input.is_action_just_pressed("ui_left"):
$body.flip_h = true
get_node("body/head").flip_h = true
get_node("body/head/front feather").flip_h = true
get_node("body/head/back feather").flip_h = true
get_node("body/back arm").flip_h = true
get_node("body/front leg").flip_h = true
get_node("body/front arm").flip_h = true
get_node("body/back leg").flip_h = true
This is how i flip it probably there's a better way to do it but...
The problem is that the arms/legs and the pinnk feathers around his head dont flip around their pivot point they just. Look:
image 1
image 2
image 3
image 4