# Simple Footstep question

**URL:** <https://qa.fmod.com/t/simple-footstep-question/16287>\
**Category:** Unity\
**Tags:** unity, csharp\
**Created:** [October 12, 2020, 6:35pm UTC](https://qa.fmod.com/t/simple-footstep-question/16287 "2020-10-12T18:35:47Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![juancvalery](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/juancvalery/32/217_2.png) [@juancvalery](https://qa.fmod.com/u/juancvalery)\
**Post date:** [October 12, 2020, 6:35pm UTC](https://qa.fmod.com/t/simple-footstep-question/16287/1 "2020-10-12T18:35:48Z")

</div>

Hey, this might be a very simple question but i cant seem to find the answer in the internet, i just crated a very simple script which i attached to a character running animation in unity so it plays the footstep sound event i created in FMOD, the thing is the sound plays, but it wont stop playing even when the character dies. I tried two ways:

1. public void PlayerFootsteps()  
{ footsteps = FMODUnity.RuntimeManager.CreateInstance(“event:/Footsteps”);  
footsteps.start();  
footsteps.release(); }
2. Same method but with this inside {FMODUnity.RuntimeManager.PlayOneShot(“event:/Footsteps”);}

Hope this is not a mess of an explanation. Thanks in advanced.

---

<div class="post-metadata">

**Author:** ![Paalo](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/paalo/32/616_2.png) [@Paalo](https://qa.fmod.com/u/Paalo)\
**Post date:** [October 14, 2020, 5:52pm UTC](https://qa.fmod.com/t/simple-footstep-question/16287/2 "2020-10-14T17:52:16Z")

</div>

Is your FMOD event (ie. look in your FMOD project) a looping sound?

Or in what way do you mean that the sound “won’t stop playing”?

---

<div class="post-metadata">

**Author:** ![juancvalery](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/juancvalery/32/217_2.png) [@juancvalery](https://qa.fmod.com/u/juancvalery)\
**Post date:** [October 14, 2020, 6:30pm UTC](https://qa.fmod.com/t/simple-footstep-question/16287/3 "2020-10-14T18:30:54Z")

</div>

hey thanks for answering, its not looping that was actually my first thought. It just wont stop playing the sound, its tied to two key frames in the animation of the character but the sound even plays when the character is not n that animation.

---

<div class="post-metadata">

**Author:** ![alexzzen](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/alexzzen/32/6825_2.png) [@alexzzen](https://qa.fmod.com/u/alexzzen)\
**Post date:** [October 14, 2020, 6:48pm UTC](https://qa.fmod.com/t/simple-footstep-question/16287/4 "2020-10-14T18:48:08Z")

</div>

Check if that method is still be called when the animation is not playing with a Debug.Log() line. Then you know if the problem is in the animation still looping or so.

---

<div class="post-metadata">

**Author:** ![juancvalery](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/juancvalery/32/217_2.png) [@juancvalery](https://qa.fmod.com/u/juancvalery)\
**Post date:** [October 15, 2020, 12:23pm UTC](https://qa.fmod.com/t/simple-footstep-question/16287/5 "2020-10-15T12:23:39Z")

</div>

Oh ok good idea let me try that.

---

<div class="post-metadata">

**Author:** ![NikMikk](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/nikmikk/32/5599_2.png) [@NikMikk](https://qa.fmod.com/u/NikMikk)\
**Post date:** [October 15, 2020, 6:35pm UTC](https://qa.fmod.com/t/simple-footstep-question/16287/6 "2020-10-15T18:35:37Z")

</div>

Are you sure the method is PlayerFootsteps method is not called every frame? It sounds like that could be it if you’re sure that it’s not a looping sound as you mentioned earlier.

---

<div class="post-metadata">

**Author:** ![juancvalery](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/juancvalery/32/217_2.png) [@juancvalery](https://qa.fmod.com/u/juancvalery)\
**Post date:** [October 17, 2020, 2:59am UTC](https://qa.fmod.com/t/simple-footstep-question/16287/7 "2020-10-17T02:59:25Z")

</div>

![Untitled](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/d/de5128bb8e917c2431d12b8d3710d776db2b2502.jpeg)

I checked all that everyone said and as far as i know (which is not much) i looks its not calling the method every frame, since i only added those two events, dont know if im missing something.

Thanks in advanced.

---

<div class="post-metadata">

**Author:** ![juancvalery](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/juancvalery/32/217_2.png) [@juancvalery](https://qa.fmod.com/u/juancvalery)\
**Post date:** [October 17, 2020, 3:02am UTC](https://qa.fmod.com/t/simple-footstep-question/16287/8 "2020-10-17T03:02:34Z")

</div>

And heres the actual FMOD event.

 ![Untitled 2](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/0/02f786dca4f081ce045eb4c047f4fefc6020e60e.png)
