Hey so I've been attempting to make a heat seeking missile but I ran into a bit of trouble. If anyone knows how to fix this I would be grateful! :)
"Can't find symbol- method getX()"
public void fly() { if (bodyFound == true) { if (getWorld().getObjects(Body.class).getX() > getX()) { setLocation(getX() + 5, getY()); } } }