protected void walk(double i) {
		if(!crouch){
			if(i >= 1 || i <= -1){
			x+=i;
			} else {
			tempx += i;
			}
			if(tempx >= 1 || tempx <= -1){
				x+=tempx;
				tempx=0;
			}
			walking = true;
			if(!jumping && !wasJumping && !bouncing && !wasBouncing){
				if(walkCurrent == walkWait){
					walkCurrentText++;
					if(walkCurrentText == walkAnim.size()){
						walkCurrentText = 0;
					}
					walkCurrent = 0;
				} else {
					walkCurrent++;
				}
			}
			if(i > 0){
				side = 1;
			} else if(i != 0){
				side = -1;
			}
			if(walkCurrentText < walkAnim.size()){
			current = walkAnim.get(walkCurrentText);
			walkCurrentText = 0;
			}
		}
	}