This is my code and as you can see I am trying to set the image of the actor background when done does not equal zero. What happens is that I get the error message "non-static method setImage cannot be refered to from static content" Please help!!!
public void act()
{
if (Greenfoot.mouseClicked(this)){onClick();}
}
public void onClick()
{
if(Safe.b1 == 0 && Safe.b2 == 0 && Safe.b3 == 1 && Safe.b4 == 0 && Safe.b5 == 1 && Safe.b6 == 0 && Safe.b7 == 1 && Safe.b8 == 0 && Safe.b9 == 1 && Safe.b0 == 0)
{
Safe.done = 1;
}
else
{
Safe.error = 1;
}
if(Safe.done != 0)
{
setImage("buttongreen.png");
background.setImage("background2deactivated.jpg");
}
if(Safe.error != 0)
{
setImage("buttonred.png");
}
}

