if Input.is_action_just_pressed("ui_a_button"):
isAttacking = true
print("attacking")
$AnimationPlayer.play("Attack" + currentDirection)
print("attackingover")
func _on_animation_finished():
print("doneattacking")
if isAttacking:
isAttacking = false
print("doneattacking")
added info, currentDirection is a string.
signal is in place.
So im running into two issues, first the attack animation isnt playing for what ever reason, my movement animations which are set up the same way work fine. Second the on animation finished isnt being called. i set up prints to helpout. Attacking, Attackingover are being printed. Both doneattacking are not printing. All i wish to do here is set isAttacking to true so my character cannot do movement inputs while the character isAttacking, then when the animation is finished, it will set isAttacking back to false so i can move again.