I'm trying to use the setImage method but I keep getting an error saying that It can not find that symbol. I have another project that uses the same thing and it works so I'm not sure where I went wrong. I'm getting the error on the last line.
public void displayTemp()
{
GreenfootImage displayImage;
displayImage = new GreenfootImage( Integer.toString(tempValue()), 20, Color.BLACK, Color.ORANGE);
//Add the image as the new image for this object
setImage(displayImage);
}