So I’m having a problem setting up the control scheme for my game. I want the controls to be fairly simple with only two buttons for the gameplay. As such, I was hoping to set up a modifier key that you can hold down to get extra use out of the two main buttons. I’ve looked into setting up multiple key presses and most people say to use booleans but I don’t think this will work in my case.
For my game the character is swimming. When you press the Left mouse Button it works their Left Arm moving them right, the Right Mouse works the Right arm moving you left, and pressing both at the same time will make both arms go moving you forward. The Modifier key is Reverse which makes you swim backward if you’re holding it and both mouse buttons at the same time.
Here’s my setup:
So the problem as you can see, is that by using Booleans, it’s registering as true for MULTIPLE events when I hold down Left Mouse, Right Mouse and the “Reverse or Modifier” key.
Also the issue with booleans is that if I’m holding Left and Right mouse to swim forward and then I just press the Reverse key too, it ignores the reverse command and I keep moving forward.
There has to be a better way to handle something like this but I’m not sure what it is.