Animation player with sound effect | the animation player plays the sound multiple time in a row

Hi,
SSo I am trying to put sfx of footsteps for my character, I am using for my character : a sprite and for the animation : an animation player and tree. And I want to play the sound effect of the footsteps when my character is in the “walking” animation.

But when I am doing this with the animation player, the sound effect can’t be hear however when I am dragging my mouse around to move the cursor of the animation player i can hear the sound effect played every milisecond or every time.
Please help me, it has worked once in the animation player but it wasn’t working in the scene.
Sorry if it’s poorly written.

I don’t have a lot of experience with repeated audio in an animation, but I think you should use the play method over the playing boolean in the animation. In this sense it should start the playback over.

Also I don’t see the loop enabled for the animation, that could also be an issue.

1 Like

I am so sorry, but could you explain or just tell where you can find the play method in the animation ? I am again so sorry to bother.
And for the loop, isn’t the blue icone on the middle activated ? Isn’t this the loop ? I might be wrong-
But really thanks for your advice !

UPDATE :
Instead of using the key in playing and so on creating a playing track. I used, thanks to this tutorial : “https://www.youtube.com/watch?v=l59lLDtuHeM”, the audio playback track. And I gragged my track, and convert it with the stream into a randomizer ( so the footsteps will be in a different pitch), then i put the track of my footsteps. And voila, i have gotten a random footstep sound effect.

1 Like

For reference I was referring to a method track.

But I’m glad you found a solution.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.