This week, I decided to tackle something we have not really touched so far while setting up the basis for our game, the UI. It goes without saying that a lot goes into UI, but the biggest thing that people think of with UI is of course, health bars. Naturally, I started off by making an image that would represent the player's health bar, but the question was, how do I make it change based on the player's health? After doing some investigation, also known as looking at previous assignments to see how it was done there. Checking there gave me insight onto a few things, including telling me that I have already made some mistakes! That mistake being that the health bar is actually made up of two images: the parent image, which is the background to the health bar, and the child image, the actual bar itself. I thought that was all nice and dandy, so after making an enemy health bar as well, I proceeded to actually look into how to code a health bar.
Leave a comment
Log in with itch.io to leave a comment.