Hi there,
I've been working with the FootstepSounds component in Adventure Creator on my First Person adventure, and I'm experiencing an issue with the timing settings.
I've set both "Walk separation" and "Run separation" values to 3 seconds in the inspector, but the footstep sounds are playing much more frequently than that - nowhere near the 3-second interval I would expect.
I'm using the "Automatically" play method (not animation events), and I have properly set up my surfaces and sound sources. The footsteps are playing correctly in terms of the right sounds for the right surfaces, but the timing between steps seems to ignore the separation values I've configured.
Is this expected behavior? I would have assumed that setting "Walk separation" to 3 seconds would mean there's a 3-second pause between each footstep sound when walking. Am I misunderstanding how these parameters work?
Any clarification would be greatly appreciated!
AC Version: 1.81.4
Unity: 2022.3.25.f1
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
It shouldn't be like that, I'm also using the First Person Prefab.
Did you delete the Animation Events in the Walking/Running Animations? Check on your firstperson camera animator.
If not, do that and look if it still happens.
I have changed a ton on mine and idk how the standard one looks, but I'd suggest to try and remake the Footsteps on another childobject of the Player.
Make a child GameObject on the player, put the footstep sounds script in there, the Sound script, adjust everything and deactivate this one and look if it still happens.
/also is this a new Project, because I'd also suggest using the newer Unity Version if that is the case, if not ignore.
That's a good point - the sample First-person Player relies on events - and, if fired, will trigger the sound regardless of the "Play sounds" property.
Hi, Thanks both for the answers.
The only events I have in the FirstPersonCamera are the "Forward Speed Float" and the "Sideways Speed Float" but they don't seem to do anything when I remove them.
I changed the Footsteps script to a child as suggested, and now I can notice the effect of the 3-second pause.
However, I'm still noticing some inconsistency with the timing. It feels long enough when set to 3 seconds, but I think it's not always the same duration. For example, when I set it back to the default 0.5 seconds for walking separation, I occasionally hear what feels like a 1-second pause between footsteps. This inconsistency appears somewhat random - most of the time, the sound plays at the expected interval, but sometimes, the timing extends noticeably longer. I double checked and my footsteps sounds are correct and properly assigned to the surfaces.
This is my whole setup.
https://imgur.com/a/7PLx4q2
Did you delete these, on the FirstPersonCamera Animator, check the other animations aswell:

The little markers there are Animation Events, delete those.
Good news - I finally figured out what was causing the problem! It wasn't the events (though thanks for suggesting those, it was helpful to know about them anyway).
The culprit was actually a missing "FP Slope Movement" component on the parent object. Turns out my terrain has some minimal slope that was causing the issue. I think this component wasn't included in the FP controller from the Download page... or maybe I accidentally deleted it at some point.
Just posting this in case anyone else runs into similar problems - check either the events, or make sure you have the "FP Slope Movement" component attached. Either of these could be causing your sound issues.
Thanks for all the help!