Hey guys, been a while....
Hope things are all good & the game is progressing....been away working on my game & have come across a problem. I am using SDL, and am trying to make my little sprite man jump correctly.....it seems that although the man jumps up when the 'up' button is pressed down, he does not move to the right/left during the jump until the key is lifted....as you can imagine it makes him move only 1 pixel each time!!
I'd really appreciate any help - the code is listed below (you guys will prob. laugh)
if (event.key.keysym.sym == SDLK_UP)
if((event.type == SDL_KEYUP) && (event.key.keysym.sym == SDLK_LEFT))
if((event.type == SDL_KEYUP) && (event.key.keysym.sym == SDLK_RIGHT))
after that it's really just closing the } and drawsceneing it.
cheers & thanks in advance!