Player state machine #3
Labels
No labels
3D Model
BUG
Debt
Gameplay element
Planning/Design
Sound
Texture
UI Sprite
VFX
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Sara/break-utopia#3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
travelApproaches
Function state machine
C++ Class State Machine
One object to represent all of enter, exit, process, physics process, setup, etc
Allows configuring states separate from body
very code-dependent, configuration and setup all has to happen in the code. Also difficult to debug as such
Node State Machine
Enter, exit, process and physics process, as well as setup and input functions are all included from the get-go
States configured in the editor, separate from the body/machine
Makes switching states slightly difficult, as all objects are ticking at once unless told otherwise (opposite of a usual state machine).
Makes stacked state machine very easy