{ private GreenfootImage image; private int transparency = 180; private int x = 30; private int y = 30; public Pheromones() { updateImage(); } private void updateImage() { GreenfootImage img = new GreenfootImage(30,30); for (int h=0 ; h<transparency ; h++) { img.setColor(Color.WHITE); img.fillOval(0,0,x,y); img.setTransparency(transparency); } setImage(img); } public void pheromoneDisipate() { transparency = transparency - 5; if (transparency <=0 ){ getWorld().removeObject(this); } else { updateImage(); } } }