1var Direction = "Left"
2
3func ChangeDirection():
4 if Direction == "Left":
5 get_node( "Sprite" ).set_flip_h( false )
6 Direction = "Right"
7 elif Direction == "Right":
8 get_node( "Sprite" ).set_flip_h( true )
9 Direction = "Left"
10