How to use constructor from one class to draw image in another
Hi, I am having problems making a constructor for a image so that I can call it whenever I want from another class. The problem Im having is that I dont know what to put in g.drawImage(blah, blah, blah, THIS SECTION). I know normally you put "this" but I need to call it into another class..
public class Obstacle
public void drawUrn(Graphics g, String obstacle, int x, int y)
g.drawImage(obstacle, x, y, );
what would I need to do so I can call that in my Player.class?