danpost wrote...
add to the zombie act method, if intersecting person, then if counter is 10 remove self else remove person.1 2 3 4 5 6 7 | // in act method of Zombie class Actor person = getOneIntersectingObject(Person. class ); if (person null ) { if (bigZombieCounter == 10 ) getWorld().removeObject( this ); else getWorld().removeObject(person); } |