There are 8 keys that all have an identical function in my game. Press ANY of these keys and the character runs, release a key and the character walks again.
The problem is, if I hold multiple of these keys down, then release just one (while still holding down the others) the release sends me back to the walk state. When in fact I'd still like the character to continue running, because there are other keys still down. As long as a single key is down, I'd like to keep running, even if some of the multiple keys are released.
My FSM has 2 states, Walk and Run.
Walk has Speed 2 in the Controller Simple Move, and 8 Get Key Down send an event to the Run State.
Run has Speed 4 in the Controller Simple Move, and 8 Get Key Up send an event to the Run State.
Any thoughts on this are greatly appreciated. Thank you.