← sources

How do I make a very complex state machine

source: reddit (reddit:gamedev)published 2026-09-28 17:29ingested 2026-09-29 02:38

retained text

So I’m trying to make a brawler. I understand state machines, and I’ve managed to make a janky state machine that incorporates x jumps, as determined by me, as well as dashes. The system has a few bugs but it works for the most part.

But how does something like Super Smash Bros Ultimate go about it. They’ve got to have an extremely complex state machine for each character. I’m sure they have dozens, maybe hundreds of states, but do each of those states really have an immense amount of conditions? With how fast the game runs and how little bugs i’ve seen, there’s gotta be some trick. There’s no way they’ve put a ton of conditions into each state and nothing has broken. How did they do it, or how would you go about it

document fetched 2026-09-29 00:26 · canonical https://reddit.com/r/gamedev/comments/1wskzpl/how_do_i_make_a_very_complex_state_machine