if you wanted to make it where when the tower is selected, you wanted to show the radius of the tower, would you have to create an image for each tower?
i figured you would have to use an if statement that tells if you click on the tower, but not really sure if i have to create an image for each tower and draw an oval around it for size range, or if there is a way to have it in the parent class and just draw an oval for the size range. if not, then you'd have to have a method that says
would that work?
1 2 3 4 5 6 7 | GreenfootImage g = new GreenfootImage( "image name of specific tower" ); if (Greenfoot.mouseClicked( this )) { g.drawOval( this .getX(), this .getY(), range, range); } else if (Greenfoot.mouseClicked( null )) g = g; |