This state machine system provide a general template for game elements with state based behaviors like characters, enemies, and UI. Providing a highly extendable system for many use cases, while providing debug tools to enhance editor workflow.
Demo
https://jasonxxr.itch.io/modular-combat-fsm-demo - Playable Demo
https://youtu.be/ic8AlUNyBHA - Video Demo
GitHub
https://github.com/jasonxuDrop/Modular-Combat-FSM
[Player]
├── StateMachine
│ ├── (Any)
│ │ ├── Transition Any -> Jump
│ ├── State Idle
│ │ ├── Action Idle
│ │ ├── Transition Idle -> Walk
│ │ ├── Transition Idle -> Run
│ ├── State Walk
│ │ ├── Action Walk
│ │ ├── Transition Walk -> Run
│ │ ├── Transition Walk -> Idle
│ ├── State Jump
│ │ ├── Action Jump
│ │ ├── Transition Jump -> Idle
Update
Change State
StateMachineEvent
of type ChangeStateBegin
.