I'm trying to Detect if a Homing missile is near its target, and then state that as an actor, so I can do:
Actor player = getObjectsInRange(50, You.class);
if (player.getX()>getX()){
xmove=-1;
}
...
setLocation(getX()+xmove,getY()+ymove);
However when I do this code, it says it cannot recognize getObjectsInRange() or it says its an incompatable type. How Can I Accomplish My homing missle?

