Hey guys, how do we flip an animation and make the animation play too

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Bushies

So, my problem is that I could flip my animation already, however I can’t make it work as when it got flipped the animation won’t work( to go to the other direction). anybody knows how to make it flip and play the animation. Thanks
here’s my code :

if Input. is_action_pressed("move_left") :
	vel.x -= speed
	$body. scale.x = -0.5
if Input. is_action_pressed("move_right") :
	vel.x += speed
	$body. scale.x = 0.5
:bust_in_silhouette: Reply From: rakkarage

to flip use -1 and 1 not -0.5 and 0.5 i think is problem