Hi I havn't been using Dark GKD for very long and am wandering how I would go about using the dbKeyState(int) function to be used for a conditional statement that is only satisfied when two keys are being pressed.
My first thought was:
bool CheckJumpRight( void )
{
if (dbKeyState(200) && dbKeyState(205)) //up and right respectivly
return true;
return false;
}
After some thought (and it not working) i thought that this isnt going to be satisfied since when both are pressed i am guessing the code is different. So what i'm asking is what can I do to make this work. The idea is for my animated sprite to jump up and right when this combanation is pressed. I have the code for making the image move in the right way (go up to a certain height then come down to the ground) I have tested by making both returns = to true its just getting this right. Any help would be appreciated.