Decreasing sound volume with magnitude
sinbot
Member Posts: 232
I have several actors that trigger sound bites when the playable actor touches/overlaps. I'm trying to use magnitude to make it so that as the playable actor moves away from the sound actor, the sound volume of that actor lowers. I found a couple tutorials but nether worked. I'm wondering if maybe my particular circumstances make the process different then those methods I reviewed. Any ideas how to make this happen?
Again, the concept is pretty simple.. the playable actor touches/overlaps an invisible actor that then triggers a sound bite that plays 1 time. As the playable actor moves further away from it, the volume of that sound fades lower.
Here is the current sound actor setup (minus my attempt at a magnitude attribute).
Comments
have you looked at @Armelline 's video/tutorial?
https://forums.gamesalad.com/discussion/89535/video-tutorial-positional-sound-volume
Yes and it works for a temporary placement actor but not for the actor I am trying to actually use. I am wondering is it maybe because the sound does not loop?
anyone have any idea? lol
I'm curious what happens if you Display Text or log to a debugging window the value of the second expression in the screenshot? In other words, are you getting the values you're expecting to get from 1-(magnitude(... ?
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User