Jesus SIlva
3/27/24
The Problem
This week I was doing the last of my bug fixing and polishing, implementing and working on whatever smaller tasks were necessary for the next stage of our game. This week I had a peculiar issue with collisions and our practice range dummies. The dummies on the station level of our game are a way for you to test your damage and for you to get used to a weapon's abilities. When the dummies were implemented, however, we found that some attacks and abilities did not properly hit the dummies and showed no damage number while other attacks did. This was problematic because it then caused us to have no way of testing our build damage in the haven level.
The Solution
The root came from the way that the hitboxes were colliding and interacting with other objects. They were colliding with enemies specifically with blocking type collisions instead of overlap collisions. This meant that the attacks would still overlap but attempt to just push the enemy away, this didn't cause too much issue with the regular enemies since they had actual health to deal damage to while the dummies simply told the player how much damage they had taken. Once I had changed the type of collision interaction the melee hitboxes would use, the problem went away and the attacks all consistently now damaged the dummies.
Did you like this post? Tell us
Leave a comment
Log in with your itch.io account to leave a comment.