Hi everyone. I recently created a 3-part video tutorial on how to create a Stamina Component that is not only modular but also fairly robust against edge-case scenarios that a lot of stamina system implementations seems to have an issue with; for instance, stamina continuing to drain if the character bumps into an obstacle/wall and is no longer moving (but the player is still holding down the run input), or just general player button-mashing.
Project file is completely free for personal or commercial use (without attribution) in an end product (game). The download link is in the video description, so you can either just download and use it, or if you want to know how to build it from scratch, you can watch the tutorial.
Link to Part 1: https://youtu.be/-Q7j9mZRfDo
By the way, this is my first time doing a full-length tutorial, so if you have some constructive feedback, would be happy to hear it. I did my best to explain each step without going off into tangents.
Creating a Robust and Modular Stamina System in Unreal Engine 5 - Part 1
Free project files: https://1drv.ms/u/s!ApmLFVkjsfZAmrN55nVXBuuw2n1beQ?e=xshtyv
License included: Free for personal or commercial use (without attribution) in an end product (game). Redistributing and/or selling the project file or the code content (whether modified or in ...