if (Greenfoot.mousePressed(this) && counter>9 )
{
System.out.println("fire");
img.setTransparency(125);
img.setColor(Color.red);
mouseinfo = Greenfoot.getMouseInfo();
img.clear();
if (mouseinfo != null && img != null)
{
x = mouseinfo.getX();
y = mouseinfo.getY();
System.out.println(x + "," + y);
img.drawLine(Human.getX(),Human.getY(),x,y);
}
this.setBackground(img);
counter = 0;
}
