Questions tagged [statemachine]
The statemachine tag has no summary.
7 questions
0 votes
3 answers
331 views
Switching between turn-based and real-time with stateless state machine
I am working on a real-time rpg with a turn-based combat. Currently I have standard state machines for a game state (real-time/combat) and for characters. However I can't seem to find a decent way to ...
1 vote
1 answer
1k views
Unity hierarchical state machines and SOLID principles questions
i was wondering if you could help me out with some confusion i have over state machines and SOLID principles! sorry if the post gets too long, i'll try to keep things simple! So i have a huge player ...
0 votes
0 answers
436 views
State machine in C for SDL game
I want to create a state machine for menu in my SDL game. So this is my code without the SDL I just want to ask if this is a good way to create it. here is a code: ...
0 votes
1 answer
84 views
Multipurpose buttons
As in the title, I am trying to figure out how to use a button for multiple purposes in Unity. In my specific case for instance, I am currently using the joystick button 0 (the A button) to perform a ...