Okay, here is my problem. This is the backdrop for my game. I set two images in my code that are the same image but just flipped. So it could give the illusion that it is snowing. I got the idea for this counter animate method from the Robot Tutorial in Oracle. My Code says there are no syntax errors and I've asked my instructor if he knew what the problem was. Help would once more be much appreciated :)
public class MyWorld extends World
{
private GreenfootImage sky1 = new GreenfootImage("sky.png");
private GreenfootImage sky2 = new GreenfootImage("sky2.png");
int counter=0;
/**
* Constructor for objects of class MyWorld.
*
*/
public MyWorld()
{
super(582, 400, 1);
addObject(new mound(), 291,266);
addObject(new sign(), 306,62);
addObject(new Penguin(), 307,268);
animate();
}
public void animate() {
if(counter < 100){
if (getBackground() == sky1){
setBackground(sky2);
}
else {
setBackground(sky1);
}
if (counter>100){
counter =0;
}
counter++;
}
}
}

