Coding Skills: Future Developments 5.0
- neelvinay17
- Sep 23, 2023
- 1 min read
After ending on strafing and pivoting from last time, I wanted to work on some more spell casing and combat based functions for both the enemies and character. This would include spells such as posion, fire bombs and archery.
Poison:
This is a spell that would deal subtle amounts of damage over time to enemies. However, this also needs to be able to be used by the enemies, and for that I'm going to be making this a public function, so that the AI can use this as well. I will have to create a damage variable that ticks health away slowly if the person is inside the spell region for that amount of time. Fire bombs: While sounding complicated, this should in theory be the easiest to do out of all of them. The only slightly difficult aspect may be the visual flames, but other than that a simple capsule collider shaped as a circle that does immediate health reduction will suffice.
Archery: This will be the most complex function I will ever possibly add. I say this because I will need to add in a crosshair for this, and make the arrow follow the crosshair, while also factoring in gravity to the projectile, and also creating a custom animation for pulling the bow back. I will also need to add in a capsule collider to the arrow. This will definitely be a challenge for me, but I will learn how to do these functions and add them eventually.




Comments