HOW TO MAKE A HEALTH BAR

Im trying to make a space game, and when the bullet hits you a bars value goes down, and when it is at 0 it kills the player.
HOWOHOWHOWOOWHOWHOW?
THX

Here’s a simple example http://flowlab.io/game/view/9822?v=2

Let me know if you have any questions.

can you change the position of the bar on the screen?

Yes. Go to the UI layer, and click and drag, if you cant get it. Then click on the grid as if you were about to make a new object type. While in the menu, drag the bar.