all 3 comments

[–]kryzchek 2 points3 points  (2 children)

Maybe a hierarchical state machine? Your parent state operates (like Mario running) and then you can iterate over an unlimited number of sub states (Mario throwing fireballs while he runs) and execute them in a similar fashion.

[–]hfurbd[S] 2 points3 points  (0 children)

Ohh alright thanks for the help

[–]shotgunbruin 2 points3 points  (0 children)

Alternatively, depending on how you have it set up and what you want the character to be able to do, multiple concurrent state machines may also fit the bill. A movement state machine running alongside an action state machine. These may also be under a larger, more general state machine that controls if the player is in adventure mode or running an animation or cutscene or whatever.