attackfinished = false
backswingfinished = false
if moveinputspeed == 0:
velocity.x = velocity.x + 140 * facing
in the state machine pressing heavy attack switches state(with delta) to in enter_state
heavyattack() is called. When idling and pressing heavy attack the animation doesnt play, and flickers some anim. But when Im running and press heavy attack, weirdly the run animation plays backwards, and then the heavy attack anim plays backwards.