Hello!
Quick question! I have player input setup like this:
boolean keyUp = Keyboard.isKeyDown(Keyboard.KEY_UP)
...
if(keyUp){
//move code
}
And a bit later:
while(Mouse.next()){
if(Mouse.isButtonDown(0)){
//fire button (boom boom)
}
}
So what happens is, if player holds UP key to run and presses mouse button to fire, movement stops. In order to run again, player must press up key again, running while shooting is impossible.
Why do keys get reset that way?