Realms game with projectile weapons

I got to lecture 98 ‘Weapon Design’ and decided to tackle projectile weapons for the player avatar. I did this by implementing a Nondominant hand class and some changes to the Player class. I implemented the projectile launching as a method in Weapon. There is a subclass ProjectileWeapon that launches the arrow.
Things are still a bit uneven, but functioning. The sound capture is a bit janky,

Here is the ProjectileWeapon class in the inspector

3 Likes

Nice progress Volts. I really liked how you took what was taught in the class and extended it further to adapt to the player. Your game is really coming along nicely.

I tried something similar for my game on the enemy archer, and ended up going back to the regular Unity course’s Glitch Garden (around lesson 160s) and found out how to make the arrow launching into a function and add it as an event at specific point in the animation. So it looks as if it is being released exactly at the right time during the bow release animation.

Keep up the great work.

1 Like

Thanks, I will probably do something similar when I get a little further along.