# Distance Enemy Problem

**URL:** <https://qa.fmod.com/t/distance-enemy-problem/12552>\
**Category:** FMOD Engine\
**Created:** [June 29, 2016, 11:51pm UTC](https://qa.fmod.com/t/distance-enemy-problem/12552 "2016-06-29T23:51:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MauroX772](https://avatars.discourse-cdn.com/v4/letter/m/ccd318/32.png) [@MauroX772](https://qa.fmod.com/u/MauroX772)\
**Post date:** [June 29, 2016, 11:51pm UTC](https://qa.fmod.com/t/distance-enemy-problem/12552/1 "2016-06-29T23:51:06Z")

</div>

I have an enemy who has a sound Loop walk, but the sound is played constantly and not based on the distance to the player , how can I make it work ?

---

<div class="post-metadata">

**Author:** ![nick1](https://avatars.discourse-cdn.com/v4/letter/n/47e85d/32.png) [@nick1](https://qa.fmod.com/u/nick1)\
**Post date:** [June 30, 2016, 5:34am UTC](https://qa.fmod.com/t/distance-enemy-problem/12552/2 "2016-06-30T05:34:00Z")

</div>

It sounds like you’ve set the position for the footstep event once, but aren’t updating it every frame.
