# Multiplayer game

**URL:** https://forum.kirupa.com/t/multiplayer-game/107489
**Category:** Uncategorized
**Created:** [April 15, 2004, 9:34pm UTC](https://forum.kirupa.com/t/multiplayer-game/107489 "2004-04-15T21:34:18Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![thebulfrog](https://avatars.discourse-cdn.com/v4/letter/t/d2c977/32.png) [@thebulfrog](https://forum.kirupa.com/u/thebulfrog)
#### Post date: [April 15, 2004, 9:34pm UTC](https://forum.kirupa.com/t/multiplayer-game/107489/1 "2004-04-15T21:34:18Z")

</div>

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](http://www.tonypa.pri.ee/tbw/tut20.html). 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
