What would be cool is if the snow landed on other snow it takes longer to melt and the more snow that has landed make the background slowly brighten to show some scenery.
public class Light extends Actor implements Glower {
private static GreenfootImage Glow = new GreenfootImage("light.png");
int d;
/**
* the static block woud be called before any instance has been inited of this class
*/
static{
Glow.setTransparency(0);
}
public GreenfootImage getGlowImage(){return Glow;}
/**
* if U don't give it a iamge at the beginning
* it will get a Greenfoot defalt iamge
* so put the image setting here, not in the act
*/
public Light()
{
setImage(Glow);
}
public void act() {
++d;
if(d > 50) getWorld().removeObject(this);
}
}
Try a change in the Light class like above, and the problem will be fitted
2012/9/23
2012/9/23
2012/9/23
2012/9/24
2012/9/25
2012/10/18
2012/10/18