Can someone help me find the selution for my code?
We want that if all three different classes are in the world. The next world is spanned.
public void act()
{
if(!ready() && !start() && getObjects(Complete.class).size() == true)
{
Greenfoot.delay(200);
Greenfoot.setWorld(new Instructiescherm3());
}
}
public boolean ready()
{
return getObjects(Complete2.class).size() == true;
}
public boolean start()
{
return getObjects(Complete3.class).size() == true;
}