Hi, I have an class that extends thread, and it creates enemies for an applet game i'm working on, the problem is i don't know the right way to get the enemies (a class themselves) drawn in the applet properly. i create the enemies in the run() method of the EnemyThread, but i want to draw these enemies in the applet, how do i go about doing that? thanks for your time
Hi, Welcome to JavaRanch! Give the Enemy class a drawMe(Graphics) method. Make sure that all the Enemy objects are available in an array or Collection. Then the Applet's paint() method can just loop over that collection, passing the Graphics object to each Enemy's drawMe() method in turn.