Is 4 heart healthbar as easy as it sounds?

Like in LEGO games, i’m trying to make a 4 hearts in left top side of the screen (ofcourse with the characters image right next to them), but iv got a question:

Do you have to make a shape in the code : (10,10,200,200) example, or you have to insert an image?

If it is about an image how can i do that ?

Additional info: When you are hit, 1 heart’s opacity is enlowered to 50%, and then the heart beat goes on to the second one…and this happens until you die with the 2nd, the 1st etc

Hi, welcome to the forum!

You can draw a texture in the GUI using the GUI.DrawTexture function. Doing something like you describe is mainly a matter of having different textures for the hearts and showing the right ones at the right time. If you have Unity Pro you may find it handy to use a movie texture to handle the animation, but you can also do it by showing a sequence of still images over time.