I'm making a tower defense game and Im having trouble with adding a range for a tower and making it aim at the enemy with the . I created a class that created a filled circle
public Tower1lvl1(int size)
{
Color green = new Color(53,199,0);
GreenfootImage img = new GreenfootImage(size, size);
img.setColor(green);
img.fillOval(0, 0, 260, 260);
setImage(img);
getImage().setTransparency(100);
}
and I wanted it to be where the tower aims within this range and aim for the Enemy class with the most distance traveled.
