I have an odd little bug that I can't seem to weed out. I have tried using the debugger in Eclipse, but I still can't seem to figure it out.
Basically, this is a very very basic engine for a platformer. A lot of the code is from a tutorial, but I have been slowly modifying it and making sure it is all working one little step at a time.
Right now, the problem is that when you are holding down right arrow + W + F you jump(W) to the right (Right arrow) and shoot a fireball (F). This works, however if you repeat the process on the left, you do not shoot the fireball.
I have done quite a bit of tracing, tracing when you enter the fireball loop, when you press the button, and a lot of other things. At the moment, it appears that the keypress for the F is not being registered. Of course, this may just be it isn't being updated or something else, I am not sure. I just know that the trace is not called for the key press event.
This seems to be only when the player is doing all three key presses. So normally you can shoot a fireball to the left, that works. I have uploaded the code to codesend, as it is pretty long and I didn't want to bog down Stackoverflow.
I am happy to provide any other of the code documents, I do think these four should be enough but if you think you need more I will be happy to provide it.
Thank you very much for your time.
CODE:
Abstract Class MapObject - Player extends this