In my World Class:
When I try to compile "setImage(score);" is highlighted with error message "cannot find symbol"
private int wrong;
private int correct;
private void endCount()
{
clear();
int total = wrong+correct;
GreenfootImage score = new GreenfootImage(100,20);
score.drawString("Your score is:" + correct + "out of" + total,2,20);
setImage(score);
}
