Multiple KeyEvents

My friends and I are working on a game. We plan to make a 2D fighter(beyond us at the moment, but it’s supposed to be a learning experience anyway), but we don’t know how to handle more than one key being pressed at the same time. For instance: Jumping Back(Up arrow + right arrow), or two players at once. Help?

Listen you can achieve the whole multiple KeyEvents thing by just using a switch statement that allows for one to press multiple keys.
Example:



switch("Your KeyEvent Handler)
{
case (VK_UP+VK_LEFT):
y = 2Cos(angle);
}

The last statement “y = 2Cos(angle)” can be ignored.I just used that as an example to show you how you would change a coordinate.

I hope that helps…