I'm new to Godot, and I've been having a problem recently: every time I use a node to change my sprite's direction using "A" and "D" (it's a platform game), the sprite stretches. Below are the codes I used:
func _get_input():
var move_direction = int(Input.is_action_pressed("move_right")) - int(Input.is_action_pressed("move_left"))
velocity.x = move_speed * move_direction
if move_direction !=0:
$texture.scale.x = move_direction
some1 help me