I want to play an a 4 frames animation, and i have tried with this code:
func input(event):
var grounded = isonfloor()
if grounded and Input.isactionjustpressed("attack1"):
$AnimationPlayer.play("attack")
and i already tried in this way:
func input(event):
if Input.isactionjustpressed("attack1"):
$AnimationPlayer.play("attack")
but my character just stop the animation and dont play the current animation to attack.
What i can try? Its just the animation thats too small??