Hi. I need help with setting an image from the internet as my world background. I tried importing file and using setBackground, but nothing works. Can someone help me?
public MyWorld()
{
super(600, 400, 1);
GreenfootImage bg = new GreenfootImage("background.jpg");
bg.scale(getWidth(), getHeight());
setBackground(bg);
// etc.
}