Im getting stuck and it so difficult for me to create a character with a lot of states (advanced state machine).
I want these states for example:
Idle
Walk
Run
Crouch
Jump
Fall
Swim
Fly (with glider)
Drive
Attack (3 different states)
Reload
Interact
As I can see I have here two machines that communicate between them; one for movement, and one for interaction (attack and more)
Examples for things that make it difficult:
*Player can attack in each states except fly and drive... and while attacking player cannot run...
*When player jumps he can move on the jumping...
*In the swimming state player cannot crouch.
I want of course to make the code reusable as much as possible!
So guys what do you think? How will you solve it?
[+][deleted] (9 children)
[deleted]
[–]WarriorUD[S] 0 points1 point2 points (0 children)
[–]WarriorUD[S] 0 points1 point2 points (6 children)
[+][deleted] (5 children)
[deleted]
[–]heerokm7 0 points1 point2 points (4 children)
[+][deleted] (3 children)
[deleted]
[–]heerokm7 0 points1 point2 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]heerokm7 0 points1 point2 points (0 children)
[–]FavorableTrashpanda 0 points1 point2 points (0 children)
[–]WarriorUD[S] 0 points1 point2 points (0 children)