BGP #5
|
Welcome back to Causality! Today I will talk about what I have accomplised during week 5 of the production of Causalityly. During week 5 I implemented a life stealing ability for the player, how and why I implemented life steal I will tell you now. Causality needed a unique game feature so after brain storming we came up with the idea that you would be able to enter another dimension. In the other dimension you had would have the ability to absorb life from your enemies after dealing damage to them. Your attacks would injure the enemies and then the player would draw the blood by pulling it through the air and then absorb it into himself using a magical force which would then give the player more health back. The reason we implemented a where you should absorb the opponents blood to increase health is because we didn’t want the player to have undeserved help with health potions that you drank with the press of a button instead we wanted a more skill based healing system to challenge our player base. What needed to be done to implement this skill was to have a splatter blood when hitting the enemy. What I had to do to make that happend was create a particle system and that replicated a blood stain to look like blood splatter. I began by using a unity coding function that Instantiate a prefab object from the resourses map however the blood always looked wierd. So instead I spawn the particle system at the chest area of the monster and then expand in all directions using the particle systems emission function in a sphere shape then I added a script to the particle system to check if every particle had lived for x seconds then they would have to change their direction and fly towards the player. When the distance of the particles and the player was the same I changed the particle lifetime to 0 which destroys the particle using the particles own system. |