why does this a

Godot Version

Godot 4

Question

why does body_start_shoot just refuse to play? All the inputs are mapped correctly. I even put a print in there to see if it was registering and it was, but no matter what i do it just refuses to play

	if Input.is_action_pressed("shoot"):
		body_animation_player.play("body_start_shoot")
	
	
	if direction > Vector2.ZERO or direction < Vector2.ZERO:
		body_animation_player.play("body_walk")
		legs_animation_player.play("legs_walk")
		
	elif direction == Vector2.ZERO:
		body_animation_player.play("idle")
		legs_animation_player.play("idle")

thoe body_animation_player will always be playing either “body_walk” or “idle”. You could try to prevent the next if/elif from running, or look into an AnimationTree. It will have a node for just these situations called a OneShot.

solved it with a different method but thanks