It appears that this method is not in my greenfoot API. Is there any way I can replicate this differently? I just want to have an instance of my Zone class to move from the top to the bottom of the screen and then back again.
atWorldEdge() is not a method in the Greenfoot API, but the code for it is:
public boolean atWorldEdge()
{
if(getX() < 1 || getX() > getWorld().getWidth() - 1)
return true;
if(getY() < 1 || getY() > getWorld().getHeight() - 1)
return true;
else
return false;
}