public void render(Screen screen){		
		
		if(dir==0){
			
			
			if(walking){
				
				animUp.setSpeed(50);
				sprite=animUp.next();
				
			
			}else {
				sprite = Sprite.player_up;
				animUp.resetAnim();
			}
		}
		if(dir==1){ 
			
			if(walking){
				
				animRight.setSpeed(50);
				sprite=animRight.next();				
			
			} else {
				sprite = Sprite.player_right;
				animRight.resetAnim();
			}
		
		}
		if(dir==2){
			
			if(walking){
				
				animDown.setSpeed(50);
				sprite=animDown.next();
				
			
			}else {
				sprite = Sprite.player_down;
				animDown.resetAnim();
			}
		}
		if(dir==3){
			
			if(walking){
				
				animLeft.setSpeed(50);
				sprite=animLeft.next();
				
			
			} else {
				sprite = Sprite.player_left;
				animLeft.resetAnim();
			}
		}
		screen.renderPlayer(x-32, y-32, sprite);
					
		
	}