Hey,
so this is the code I have for now but it doesnt seem to work.
The compiler says "invalid method declaration;return type required"
private int time = 0;
public WorldName()
{
super(/**...*/);
Greenfoot.setSpeed(50);
prepare();
}
private void prepare()
{
time = 3300;
//adding objects here
}
public void act()
{
time--;
if (time == 0)
{
removeObjects(getObjects(null));
prepare();
/** OR **/
Greenfoot.setWorld(new WorldName());
}
}

