Error with movement.

I am currently creating a game in slick, I am also making graphics for it, But i seem to have a problem, When i try to hit my left/right arrow keys the player doesn’t move, Up and down arrow keys work, If you were to hit down/right/up or down/left/up keys the player moves straight.

My Play.java code, Contains the movement.:http://pastebin.java-gaming.org/3cf6e423b1c15

Your missing a bracket, line 75. This was just a quick scan may be other things aswell

^Good spot!

@IxFryIx - are you coding in an IDE? Something like Eclipse (it’s free!) would let you set a breakpoint at the top of that function, then you could step through it and see control jumping past the left/right parts. Also IDEs can help with consistent indentation which might have shown you the problem here before even running it…

Thank you, You were right!

Yes i am using Eclipse.