- Sprint system with stamina drain and fast regeneration
- Sprint disabled when stamina reaches 0 until it refills to 25%
- Player icon automatically set to the player’s avatar
- Live health text updates (current health / max health)
- Sound plays when stamina is depleted
- Sound plays when stamina refills enough to sprint again
This system provides a clean and responsive health and stamina interface designed to feel smooth and modern while staying lightweight and easy to integrate into a game. Both bars update using smooth tweens so changes never feel sudden or jarring, with the health bar intentionally moving slower to give damage more visual weight while the stamina bar stays responsive during movement. When either value drops below 25%, the UI gradients begin pulsing to create a clear visual warning without being distracting or overwhelming. The stamina system is fully integrated with player movement, allowing sprinting at a faster speed while gradually draining stamina and regenerating it quickly when not sprinting. If stamina is completely exhausted, sprinting is temporarily disabled until it refills to a safe level, preventing instant reuse and encouraging better pacing. The interface also updates dynamically by showing the player’s avatar icon and real-time health values, making the system feel polished and connected to the player while remaining optimized for consistent gameplay performance.
