Josh's Blog
Things I did on my computer and more.
Blog Archive
Health Bars and Spin Attacks
July 13th, 2020

Over the last few days I've been working on adding more types of attacks into my game. I have to admit, I probably did not choose the easiest combat system for someone who is just starting to get their feet wet in 3D game development; because my game has a sort of "automated" attack system where you click on an enemy and the player moves towards and hits it, I have to be careful with prioritizing actions in my code (i.e. when do we move and when do we attack, when does one action trump the other, etc). After a lot of fiddling, I managed to get a spin attack working in my game, as shown in the gif below. I also created a health bar above my enemies' heads. I'm making steady progress on getting satisfying movement and combat, and hopefully soon I'll be able to start crafting the world around the player!

--Josh

<-- Newer Post Older Post -->