#Decreasing a number smoothly

1 messages · Page 1 of 1 (latest)

lethal loom
#

I've only been able to come up terrible, janky solutions. How can I fade in and out an audio player, going from 0 to 1 at least somewhat smoothly?

Also, what's the limit to audio players that can be triggered at once? When I play more than about 4 off one execution. Thanks again!

ebon kindle
#

It really depends on net because if you make it smoothly turn down the volume it could be taking a lot of net

oblique shale
# lethal loom I've only been able to come up terrible, janky solutions. How can I fade in and ...

Assuming its local, Time Get Precise Seconds and Float Variable

When you want to start the fade, set the Float Variable to Time Get Precise Seconds
Time Get Precise Seconds - Float Variable = The amount of time that has passed since the variable was set

You can divide this time by X to have it take X seconds to reach 1, so if you wanted to make it take 6 second to fade in, you would do (Time Get Precise Seconds - Float Variable) / 6

#

You would still need to constantly update the volume in order for this to work though, easiest done with 30hz, better sounding with 60hz

tacit helm
#

Divide the float variable by 1.1 and then set it to the output

lethal loom
#

Thank you all!