EDIT: Tested the script out in-game...it's perfect! Couldn't be happier with it, and the flashing stamina icon is a nice surprise as well. I'm glad you've got those easy-to-modify values up at the top for newbies like me, since there isn't really much I can figure out beyond that point. I quite like your HUD design, though I've already tweaked it a bit for my own liking:
Probably still going to make a new ammo counter as well with more JP-esque numbers.
The only thing I found which was a bit odd was that you can sprint while moving sideways or backward. Would it be possible to make it work only when moving forward (i.e., holding the W key)? I also can't seem to get the custom keybind to stay when restarting the game, but that might be a problem on my part.
If you manage to find the time to complete the script, I would be extremely grateful. The only things missing are the sounds (there are quite a few unused "Tired" Anne sounds in the TPA - these are):
- Spoiler: show
And - as I noticed you mentioned in the code - a flashing health icon when your health is low (<20% or so) would complete the HUD. If possible, I'd also like to ask that you make the Stamina icon flash only you try to do something which requires stamina but don't have enough, as sort of an indicator that you've run out.
Finally, I'd like to see if you could make a separate script (different file) which simply increases the player's overall speed by about 15%. Not a priority, but would be nice to have so that the bunny-hoppers can rest their jumping fingers.
Would it be possible to split the HUD script from the Stamina script into a separate file, by the way? Or are they tied together..? Just asking in order to keep things tidy and quickly accessible in the script folder.
EDIT 2: Finished the ammo count numbers: