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?


1 | private Boss boss; |
1 | boss.setLocation(getX(), getY()- 25 ); |
1 | private Healthbar healthbar; |
1 | healthbar.setLocation(getX(), getY()- 25 ); |