# Mortal Kombat

**URL:** https://forum.kirupa.com/t/mortal-kombat/236457
**Category:** programming
**Created:** [August 21, 2007, 3:00am UTC](https://forum.kirupa.com/t/mortal-kombat/236457 "2007-08-21T03:00:39Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![joejozwowski](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/joejozwowski/32/3596_2.png) [@joejozwowski](https://forum.kirupa.com/u/joejozwowski)
#### Post date: [August 21, 2007, 3:00am UTC](https://forum.kirupa.com/t/mortal-kombat/236457/1 "2007-08-21T03:00:39Z")

</div>

Good Evening Flash Gurus,

Here’s my dilemma. I’m creating a mortal kombat style game where the movement, punch, kick, block, jump and power move controls are all scripted in the keyboard. I have two MCs that both have a good deal of clipEvent(keyDown) and clipEvent(keyUp) instances (well one of each, actually, but both notions hold a lot of code).

The problem I’m running into, is that when I’m controlling one of the MCs with the specific keystrokes that control him, I can’t control the other MC until all keys have been released.

How can I re-code these two MCs (hopefully not much modification will be needed) so that I can control each MC independently no matter who’s doing what to the keyboard.

I await your vast wisdom!
