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:
motion.x += x_input * ACCELERATION * delta
motion.x = clamp(motion.x, -MAX_SPEED, MAX_SPEED)
sprite.flip_h = x_input < 0
This is what's only giving me one frame:
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.