# Sound Volume Question

**URL:** <https://forum.kirupa.com/t/sound-volume-question/240695>\
**Category:** programming\
**Created:** [October 5, 2007, 3:37am UTC](https://forum.kirupa.com/t/sound-volume-question/240695 "2007-10-05T03:37:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cranky\_crank](https://avatars.discourse-cdn.com/v4/letter/c/87869e/32.png) [@cranky\_crank](https://forum.kirupa.com/u/cranky_crank)\
**Post date:** [October 5, 2007, 3:37am UTC](https://forum.kirupa.com/t/sound-volume-question/240695/1 "2007-10-05T03:37:59Z")

</div>

Howdy. In my game I have the player running around rooms and in one of them I have a fireplace. I was wondering if anyone knew a way to make it so the closer they are to the fire (or within a certain range) would change the fires sounds volume. I’ve tried to do it with

```auto

setVolume();

```

but so far no luck with my crafty codes. I am also looking to make another sound fade based off a movieclips \_alpha.
