hi!!!... i'm going to develop a zombie game..so i created three actor classes (zombie,parent and children).what i want to do is zombie first find the given location of parents and eat(remove) them and as soon as possible zombie have to move to the child and eat child and game over..please someone help me.. this is the code i have developed so far..
public void act()
{
move(1);
chasePrent();
Actor Parent=getOneIntersectingObject(parent.class);
Actor child=getOneIntersectingObject(child.class);
if(Survivor!=nulll){
getWorld().removeObject(parent);
getWorld().removeObject(me);
}
}
public void parent(){
turnTowards(parent.parentX, parent.parentY);
}
}