Here is the code;
func _input(event):
if event.is_action_pressed("move_right"):
$player_animator.play("walking_animation")
if event.is_action_pressed("move_left"):
$player_animator.play("walking_animation")
if event.is_action_pressed("move_up"):
$player_animator.play("walking_animation")
if event.is_action_pressed("move_down"):
$player_animator.play("walking_animation")
I tried using .stop to $player_animator (the animation player). Then I tried making a variable "is running" and making that variable false normally and true while I pressed the movement keys. But they all failed to do anything.