A short project I made in 5 minutes. To add to your project, click "See inside" and backpack the "Make Health Bar" custom block. Then, drag it into your own game and use the custom block wherever you want.
All art and code by me. Click on the sprite to decrease its health.