Footstep SFX and Debugging

I’m having issues with the footstep sound bugging out when I try to use it, could anyone help me with debugging the script.

Project Link: https://playcanvas.com/editor/scene/1197522

In your playFootsteps.js script you have a statement that checks if the current sound is already playing, to prevent the sound is started over and over. However, in the playerAnimationHandler.js script that you currently use to start the sound, you don’t have a check like that, so your sound is starting over and over.

5 Likes