itch.io is community of indie game creators and players

Devlogs

Health Manager and Possession Fixes

Slimegeon
A downloadable game

Jamari Williams 3/3/2023

This week, I continued working on the possession of the enemies. I fixed a couple of major bugs with the possession and I integrated the additional attacks to allow the player to use them. I also created a health manager for all things that can cause and take damage. 

The health manager was the simplest thing that I did this week. It’s just an actor that is responsible for causing damage, healing, and setting invincibility to objects. Before, actors would directly access the health bar component. The health manager creates a small layer of protection and makes applying damage to things simpler. I created a function in a function library so that the health manager can be accessed by any script that needs to apply damage. 

One of the major bugs I fixed was one where the player can’t move sometimes after possessing an enemy. I realized that on some attacks, the walking speed was getting set to zero. So if you possessed something while it was attacking, the movement speed never gets reset. I just reset the walking speed whenever you possess an enemy. 

Another bug I fixed is one where if you hold a direction while being possessing an enemy, the slime will go in a different direction besides right on top of the enemy’s head. It didn’t make any sense to me because while you’re possessing something, I disable the movement of the current player controller. I found out the issue was that I was setting the slime’s movement mode to Flying, when it should have been set to None. This issue had been confusing me for weeks and I’m glad to be passed it. 

As for the special attacks, my team finished implementing them, so I transferred them over to work when the enemy is possessed. The ghoul gets a rage ability that increases its attack speed, the Lich can summon a fire tornado, and the Skeleton can shoot explosive arrows, all when the player right-clicks. Since I set up a base possession class, this didn’t take long to implement. I am happy with the progress I’ve made this week and feel good moving forward.

Leave a comment