Player Health and Death
After implementing the waypoint system I spent some time refactoring the game code and fixed some minor bugs. After I felt like the project was in a good state I started working on the player health system.
Whenever the player makes a hard landing, which occurs if they jump off a tall platform or fall off the map, they will lose one health. If the player's health drops to zero a death animation will play and the player will respawn at the last major checkpoint (the start of the level and the entrance to the last section of the level).
I also added a rudimentary health UI so players can see their current health. This system will be important for implementing new hazards like spikes. I also eventually plan to add some feedback to the player health UI such as basic animations when health is lost or gained. I'm also looking into whether I can add a particle system to the UI as additional feedback for losing health.
Files
Vaults & Vampires
A platform adventure game with mechanics and themes inspired by tabletop role-playing games.
Status | Prototype |
Author | rcxa |
Genre | Adventure, Platformer, Role Playing |
Tags | 3D, 3D Platformer, Prototype, Singleplayer, Unity |
More posts
- Refactored Shadows for PerformanceAug 18, 2024
- Audio Controller for Sound EffectsFeb 18, 2024
- Refactoring and Starting CombatFeb 03, 2024
- Double JumpingJan 29, 2024
- Spikes and Mobile InterfaceJan 21, 2024
- Waypoint SystemJan 14, 2024
- Jumping and Landing FeedbackJan 08, 2024
- Codebase Restructuring and Walk AnimationsJan 06, 2024
- Player Animation ControllerJan 04, 2024
Leave a comment
Log in with itch.io to leave a comment.