How can you have multiple user inputs, so that if one player is using the arrow keys and the other player is using a,s,w,&d they don’t cancel each others keypresses out.
In other words, how can two people play at once without making it turn based.
Take, for instance, the code at this site. What would need to be done in order to add another character (simple), allow him to be controlled by a,s,w,&d (simple), and let that happen at the exact same time as someone else is using the arrows. I’m not asking for any code-I’m wondering if it’s physically possible, and if so, what would it take.
So far, I haven’t seen any game that does this, but I’m really hoping it’s possible.
note I know could just have a series of if statements, such as if UP arrow and RIGHT arrow are pressed at the same time, go Upright. I’m looking for something that’s a bit more dynamic