Any way to make movement in the air while checking animations on the ground?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Nattra

I’m currently working on my first test platform game. I have a 5 frame jump animation and a roll animation to play during a double jump. The problem is, my current code always makes the animation run so only the first frame of the jump and double jump will play. I partially solved this by making the input all be checked by an is _on _ floor statement but that makes it so I can no longer move in the air. What’s the best way to make movement in the air possible while allowing multiple frame animations?

From what I can tell, you’d just want to have certain input under the is_on_floor check, so the ones that need to be can still process

andersmmg | 2020-04-11 00:04