When checking keyboard function, I basically want to have the player be able to jump and move at the same time. The first way I tried this was as so:
void CheckKeys()
{
if (keys.IsKeyDown(Keys.Left))
{
MoveCharLeft();
}
if (keys.IsKeyDown(Keys.Up))
{
JumpChar();
}
}
And it didn't update fast enough to do both, so I tried:
void CheckKeys()
{
if (keys.IsKeyDown(Keys.Left) && keys.IsKeyDown(Keys.Up)))
{
MoveCharLeft();
JumpChar();
}
}
and when setting the breakpoint on those lines inside the if, it doesn't trigger at all.
Any ideas?