Random WIP #1
In my previous post I cleaned up the project along with adding a few things like multiple weapons and weapon toggling. I was in the mood to implement a HUD to give a visual of what is currently working in the prototype. The cube has a simple script for subtracting and adding health.
I took a bit of inspiration from some popular MOBA's for the weapon part of the HUD, at the moment it just tells you when is the next time you will be able to use it. I plan to add a visual to show which weapon you're currently hovering over. While the MOBA like HUD is good at showing all your cooldowns at once I still don't really know if I want to utilize it in this static way. I might attempt to make a slightly more dynamic HUD where your current weapon goes up in size or some other change to free up screen space. The numbers showing the cooldown timer are also hard to read in this current iteration, I'll remember to tint the weapon image a darker tone until the weapon is available again. TheUnity GUI features made the wipe on the cooldown images incredibly simple, I was anticipating using some gradient alpha map and along with some tedious code. Due to the Unity GUI it was only a line of code.
The health and stamina bars are nothing special. The code is still the same its always been, an issue I had in previous work was smoothing the movement. I tried using fillAmount which was used in the cooldown part of the HUD. The result was still choppy and I was a bit disapointed. I couldn't create the result I wanted. In the end I wound up adding logic to the bars to ease the transition from value to value. With fillAmount however does make simple health bars a breeze regardless of the shape of the Image.
More to come!
0 comments:
Post a Comment