I’m trying to set up a rock, paper, scissors state machine. I’m using the default Vive controller.
Requirement: player can change to Rock, Paper or Scissors at any time.
I was hoping someone could give me some advice about the setup below. Need I just need fix up my conditions, or use something else entirely?
The current controls are:
- Trigger = Scissors
- Grip = Paper
- Trigger + Grip = Rock
What I have now works, aside from the fact I run into state lock sometimes when pressing the buttons at about the same time. definitely has to do with how I have the conditions set up, but I’m not sure about the best way to fix it.
Here are the animations I have (all of them are the exact same length):
- Rock (looping)
- Paper (looping)
- Scissors (looping)
- Idle (looping)
- Idle_To_Rock
- Idle_To_Paper
- Idle_To_Scissors
- Paper_To_Scissors
- Rock_To_Paper
- Rock_To_Scissors
(4-10 are played backwards as needed.)
The conditions check only the following things as needed:
Grip_Pressed, Trigger_Pressed, TimeRemainingRatio (>=.9 for backwards anims, <=.1 for forward anims)
Here’s a screenshot of the state machine.