itch.io is community of indie game creators and players

Making the reload UI in a new framework

So we had a bit of an emergency and had to change a large amount of the project to get things to work properly across the network. Unfortunately this means that a lot of things needed to be changed/ reworked to fit within the new framework. The most difficult one for me regarding this was the reload UI. Previously the UI was tied to the character and the reload functionality was as well so all of the variables were together, but now the HUD was separate and the reload functionality was on the weapon instead of the character.

Fixing this was a major time consuming headache as one might imagine. First I tried putting all of the HUD functionality into the weapon itself which seemed like it was appropriate but then it wasn't being called properly. I tried calling it from several different places before eventually settling on calling it from the player when a weapon is equipped and thankfully that finally worked. Either way it was much harder than it was originally and took much longer than I expected.

Grimes, Connor M.

Leave a comment