I wanted to make the player hear the sound of steps when:
- he touches a particular ground
- and when he is moving.
I have arranged such an event, but the effect is that I can hear a lot of overlapping footsteps sounds.
Variable "footsteps_speed" is used to adjust the interval between steps.
I thought the system was playing sound and waiting to play sound again, if of course the conditions are met.
I think I miss something here. I will be grateful for every hint.