top of page

Coding Skills: Failed Attempts 2

As foolish as this may sound, I wanted to work on spells very early on in the project. It interested me because while I understoof how melee attacks could be added, I had no idea how I would add a damage collider, or some form of detection to the spell for the player or enemy to detect it. In essence, I started by working on the visuals, since I thought that if I got that down, the coding would be easy. It was quite the opposite however, since the visuals were easy; taking them off tutorial videos was a breeze. My initial thoughts for the code was to create a capsule collider for the spell itself, and once the spell connected it would activate by using an if function. This was problematic however, since the spell would often move, and moving the capsule collider with it was not something I knew how to do. Not only that, but I also didn't know how to make it so that the spell would hit the right character, and not any random enemy or NPC.


Comments

Rated 0 out of 5 stars.
No ratings yet

Add a rating
bottom of page