I'm trying to change the colour of and actor. However the code I put in doesn't work even though Greenfoot says nothing wrong...
private int COME_DOWN = 300;
private int grn = 6;
private GreenfootImage image;
/**
* Act - do whatever the Block wants to do. This method is called whenever
* the 'Act' or 'Run' button gets pressed in the environment.
*/
public void act()
{
moveDown();
COME_DOWN --;
setColor();
}
private void moveDown()
{
Greenfoot.getRandomNumber(grn);
setRotation(90);
move(grn);
}
private void setColor()
{
image = getImage();
image.setColor(Color.BLACK);
}
Can someone please help me?!

