Make sound fade with distance??

jeancrast2jeancrast2 Member Posts: 12
I have a main character that shoots at the enemy, and the enemy also shoots automatically throughout the game...and the sound when he shoots is hear all the time, even when the main character is at a long distance from him....how can I make the sound fade away with distance as the character moves away??

Comments

  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    you can calculate the magnitude between the enemy and the main actor (search for magnitude to find out how to do this)

    and based on that value, you can adjust the volume of sound playing.

    I don't know if you can adjust the volume on an individual actor, or if you need to do all sounds at once, someone else can comment on that.
Sign In or Register to comment.