how to make a character shoot and walk at the same time

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

I think you could implement two state machines one for the movement (jumping, stopped) and another for the skills (attack, shoot).
How it would be the correct implementation for functions without errors

:bust_in_silhouette: Reply From: null_digital

I’d use state machines. Here’s a nice material on them: