Hey i really need some help, i dont have code for this but im trying to make an actor follow the player as in follow a car, i need this actor to act as a cop trying to chase you, can anyone please give me an example?
public void act() {
if (alive) {
java.util.List<Car> playersInWorld = // etc.
//
Actor b = // etc.public void moveToPlayer(Car player) {
turnTowards(player.getX(), player.getY());
move(1);
setRotation(0);
}