Specifically, I am trying to make a Zombie Game. I want Zombies to follow the person around. This is my source, any Help is appreciated. Thanks
public void act()
{
moveIt();
followHuman();
RandMove();
}
public void moveIt()
{
move(2);
if(atWorldEdge())
{
turn(5);
}
}
public void RandMove()
{
if(Greenfoot.getRandomNumber(100)>20)
{
turn(Greenfoot.getRandomNumber(20)-10);
}
}
public void followHuman()
{
String target;
getObjectsInRange(400,Survivor.class);
int targetX = getX();
int targetY = getY();
}

