Devlogs
Devlog #3: UI and Weapon animation
Posted October 29, 2024 by SpaceGoat3D
#Shooter #FPS #Zombies #UI #Weapons
1. Overview
The changes include a Health Bar and Ammo Count UI, along with muzzle flash and recoil for the player's weapon.
2. Health Bar and Ammo Count UI
- Goal: To provide feedback to players on their current health and ammo status
- Implementation:
- Used Unity's Canvas/Image/TexMeshPro to create a dynamic health bar that decreases as the player takes damage.
- Created a text-based ammo counter next to the health bar that updates when the player fires or reloads.
- Challenges:
- Adjusting the health bar animation to match damage accurately took several attempts, especially to ensure the transition looked smooth and responsive.
- Next Steps:
- Consider adding animations to highlight low health or ammo, increasing urgency for the player.