Need help making a stamina bar.
So I want to make a stamina bar that works like the one in Salt and Sanctuary. Like how it goes down when you attack or dodge; and I'd like for it to lower the max stamina when the stamina is used up excessively. I would like for it to have a serialized field to change the max stamina, stamina draw from punch, stamina draw from block, stamina draw from dodging, and it needs to have a recharge as well. If anyone knows how to do something like For Honor's revenge mode for the stamina that'd be awesome too.
So far I have nothing because I'm not good at coding so anything will help. Thanks anyone and everyone for your help.
Your answer
Follow this Question
Related Questions
enabling and disabling components script not working 1 Answer
change a created transform in a script from another one 1 Answer
Playing an audio clip on trigger entry - Help please 0 Answers
How to set a special prefab in a switch? 1 Answer
How do I make the player character take damage while standing still? 1 Answer