Footstep Sounds Not Playing on Enemies


Author - Cameron Euston

The Issue: 

There was a bug that I discovered while playing through our game where the enemies did not make footstep sounds. This was strange because I verified that the enemy footstep sounds were working a few days earlier. The other weird thing was I had not made any major changes to the enemies since I implemented the footsteps.

The Solution:

I did some investigating and discovered that the line trace for the footsteps was not hitting. The reason why it had stopped hitting the floor was because we had scaled up the enemies sometime earlier. The solution however could not be increase the length of the line trace because then the player would hear the sounds of the material far below them if they were running on the edge of something. The solution I finally settled on was having the line trace happen from the root bone of the character. The reason for this is because the root bone is typically at the bottom of the skeleton. This then fixed the issue.

Leave a comment

Log in with itch.io to leave a comment.