SOLVED
Okay, so basically i'm adding a character, and i want to make it so i can basically load three images for different actions...
still.png
right.png
left.png
so basically i've added this...
Code :ImageIcon c = new ImageIcon("Images/right.gif"); ImageIcon r = new ImageIcon("Images/right.gif"); ImageIcon l = new ImageIcon("Images/left.gif"); still = c.getImage(); right = r.getImage(); left = l.getImage();
Code :public Image getImage(){ return still; }
and then painted this
Code :g2d.drawImage(b.getImage(), b.getX(), b.getY(), null);
so basically, i want my 'getImage()' to load three instances of the player, how would i do that without them basically overlapping?
