Hi, I made an automated turret which fires at a vehicle which you control. But I had to make the co-ordinates of Vehicle static:
public static int vehicleX;
public static int vehicleY;
vehicleX = getX();
vehicleY = getY();
and then in my Turret class write:
public void aim()
{
turnTowards(Vehicle.vehicleX, Vehicle.vehicleY);
}
It works, but how can I fix this?

