How do I make a health bar that follows a boss sprite?

I have a boss battle in my game and the boss is obviously much tougher than a normal enemy.

So, I want to display a health bar slightly above the boss sprite and have it follow the sprite while also updating in realtime whenever the boss takes damage.

How would I go about doing this?

Hi,
You have an example here:

4 Likes