Hey Guys I am new at game creation, How to make the attack animation switches to the another animation by clicking more

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Trumble
:bust_in_silhouette: Reply From: Vikrant

you could use

if Input.is_button_pressed("Attack"):
   $AnimatedSprite.play("Attack")
else:
   $AnimatedSprite.play("idle")

you need to describe what is attack button which is under
Project > project settings > input map