Coordinating 3D Sound

Blitz3D Forums/Blitz3D Beginners Area/Coordinating 3D Sound

NTense(Posted 2003) [#1]
I didn't see an audio forum, so I figured this would be just as good. I was wondering if anyone knows a decent way to coordinate footfall sounds so that they play when a foot actually "strikes" the ground. I know I can loop a footstep progression, but I have a model that has dynamic tweening between walk and run cycle. So they can walk slow, and speed into a run. Anyone know an easy way/algorithm to coordinate the footfall sounds?


GfK(Posted 2003) [#2]
The easiest way would be to determine in which animation frames the character's foot comes into contact with the ground, then you can check the animation frame number with AnimTime().

You might have to fiddle a bit, as that function returns a float if you're playing back animation at a speed other than 1.


NTense(Posted 2003) [#3]
Thanks!! That's a lot easier than I thought it would be!