help! weird problem

In my game, when the character’s position is 0 or less, he cant move left (left edge of the game)

My code works when he is walking on ground level (he cant move left when reach edge), but when character is jumping, in the air, then he can MOVE left. i dont know why this happens

my code:

if(key == Event.LEFT)
 {
	if(quix.getXposLeft()<=0)
	{
	     quix.isWalkingLeft(false);
	     quix.isFaceLeft(true);
	}
}
........................
else if (key == Event.UP)
{
	if(!quix.getJumpLock())
 	   quix.isJumping(true);
}

It depends what isWalkingLeft() does. From its name it would look like it would only stopping the player from -walking- left. If you don’t check for isWalkingLeft while in the air then that could be your problem right there.

If that’s not it, do you have any sort of momentum, like if you let go, will the player keep going left or right? Seeing how you handle the part that actually moves the player might help.