rendered paste body public void paint(Graphics2D g) { int xp = (int) (Map.TILE_SIZE * x); int yp = (int) (Map.TILE_SIZE * y); if (Game.down == true){ g.drawImage(image1, (int) (xp - 16), (int) (yp - 16), null); } if (Game.up == true){ g.drawImage(image2, (int) (xp - 16), (int) (yp - 16), null); } if (Game.left == true){ g.drawImage(image3, (int) (xp - 16), (int) (yp - 16), null); } if (Game.right == true){ g.drawImage(image4, (int) (xp - 16), (int) (yp - 16), null); } //g.drawImage(image1, (int) (xp - 16), (int) (yp - 16), null); }