I'm actually trying to do something fairly simple.
I cannot get multiple key presses to work in XNA. I've tried the following pieces of code.
else if (keyboardState.IsKeyDown(Keys.Down) && (keyboardState.IsKeyDown(Keys.Left)))
{
//Move Character South-West
}
and I tried.
else if (keyboardState.IsKeyDown(Keys.Down))
{
if (keyboardState.IsKeyDown(Keys.Left))
{
//Move Character South-West
}
}
Neither worked for me. Single presses work just fine. Any thoughts?