I am trying to make a boss with a healthbar and it works but I want to make it so that the healthbar stays above the boss, even if the boss turns. Does anyone know how to do that?
private Boss boss;
boss.setLocation(getX(), getY()-25);
private Healthbar healthbar;
healthbar.setLocation(getX(), getY()-25);