Posted February 24, 2024 by Ghost Of Reddus1
#BlogPost
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.