My run and idle animations always work, but despite having it set to play other animations on inputs they only ever play the first frame. This is whats working for my run and idle:
if x_input != 0:
$AnimationPlayer.play("Run")
motion.x += x_input * ACCELERATION * delta
motion.x = clamp(motion.x, -MAX_SPEED, MAX_SPEED)
sprite.flip_h = x_input < 0
else:
$AnimationPlayer.play("Idle")`
This is what's only giving me one frame:
if Input.is_action_pressed("ui_special"):
$AnimationPlayer.play("Float")
motion.y = JUMP_FORCE*AIR_RESISTANCE*4
What do I need to do to make it play the whole thing out? I also have moveandslide on, I don't know if that's got something to do with it.