itch.io is community of indie game creators and players

Hammer Implementation Trouble

Author: Jesus Silva

Date: 12/14/2023

What Went Wrong

For this version of the build, I was trying to implement the hammer weapon with at least a primary attack that could damage enemies. My main issue came from trying to set up collisions for the hammer when there were no swinging animations.  A contributing factor was finding where to attach the primary attack collision. I was also having trouble making the collision box show up and be enabled correctly for a certain duration. Lastly, My biggest issue was how to access the parent actor which would be the player, and set up the collider to make it consistently stay in one spot relative to the front of the player.

Potential Solutions

My current solution for getting the collider to collide with interactable and destructible objects was to make the overall collider much larger. Additionally, the root of the problem was that I didn't set up a way to access the parent owner which is the player. Once I set up the attachment to the player, I was able to have a consistent collision placement for the primary attack. 

Leave a comment