How do I allow two players to play at once using only one keyboard?

So I answered a question kind of similar to this, and well this is what I would personally do when it comes to handling multiple key presses. The only problem in your case, is that I do not know necessarily how many maximum keys will be pressed at one time, so you would have to work that out (and we could help out of course if need be).

The question is here:

And maybe you can take a look at that and see if it works? Now, as far as I know, technically you can’t really expect for two players to be able to play at the same time. I have made a two player pong game before, and had one player use the keyboard and the other uses the mouse. There might be a way to use two separate keyboards and switch between them but that’s just me being hypothetical :smiley: As far as I know, it’s not ideal trying to get two players to use the same keyboard.

Hopefully that helps,

EnhancedLoop7

2 Likes