Blog Entry: Health/Stamina Bars Not Updating


Author: Austin Pereira

2/23/2024

Health/Stamina Bars Not Updating


Initially, neither the health or stamina bars were updating during gameplay. In the background, all the calculations were correct but in game the UI components were never being updated to show the new values. If never fixed users wouldn't be able to tell how much health or stamina they had during gameplay. This was a issue that needed to be solved immediately so that the user experience wouldn't get interrupted.


After debugging the method that is called when updating the UI, I discovered that Unreal duplicated my UI progress bars so the progress bars I was calling to be updated were the wrong ones. Additionally, when we were calling the update to the progress bars in OnTick, it was casing the game to drop in performance. I was able to change what progress bars were being called to and deleted the duplicate progress bars so that it can't happen in the future. I also stopped calling the update to the progress bars in OnTick and that improved the performance of the game. Solving both of theses issues helped the User Interface work as intended and help the user understand what is going on in-game.

Get Deadlands Duel: Time Rift Rumble

Download NowName your own price

Comments

Log in with itch.io to leave a comment.

UI is working really smooth right now. Can't wait to keep on adding to this system.

(+1)

The UI looks good so far but I can't wait to see the finished rendition of the UI.

(+1)

This is going to polish a lot of needed features!