playMaker

Author Topic: [Solved] Audio Fade Out - can't get it to work  (Read 4056 times)

createasaurus

  • Full Member
  • ***
  • Posts: 146
[Solved] Audio Fade Out - can't get it to work
« on: November 18, 2015, 07:03:03 PM »
Hi,  I downloaded an action from the Ecosystem called Audio Fade Out.  I can't seem to get it to work.  My goal is simply to fade music to silence over 1 second.

I have an audio source on an object.
I'm using Set Audio Clip, Audio Play, then Audio Fade Out... pretty simple.

The problem is the Audio does not fade, rather it abruptly stops, as if I'm using Audio Stop.  On the Audio Fade Out I have the time set to 1.

Any thoughts on how to do a simple music fade out are appreciated.

Thanks!!
« Last Edit: November 20, 2015, 09:16:09 AM by createasaurus »

phannDOTde

  • Full Member
  • ***
  • Posts: 237
    • Peter Hann .de
Re: Audio Fade Out - can't get it to work
« Reply #1 on: November 18, 2015, 10:39:29 PM »
1. Use "set audio volume" action
2. set the action to "every frame"
3. add a float variable "volume" to your FSM script
4. add "float interpolate" action to the same state
5. interpolate a float value from 1 to 0 and feed it into your variable "volume"

:-)

createasaurus

  • Full Member
  • ***
  • Posts: 146
Re: Audio Fade Out - can't get it to work
« Reply #2 on: November 20, 2015, 09:15:53 AM »
Perfect!!!!!!
Thank you, phannDOTde.   ;)

phannDOTde

  • Full Member
  • ***
  • Posts: 237
    • Peter Hann .de
Re: [Solved] Audio Fade Out - can't get it to work
« Reply #3 on: November 21, 2015, 07:05:45 AM »
Sure, you're welcome :-)

montmars

  • Playmaker Newbie
  • *
  • Posts: 9
Re: [Solved] Audio Fade Out - can't get it to work
« Reply #4 on: May 14, 2016, 09:16:00 PM »
I'm also very late to reply here, but for future reference try AUDIO FADE IN ...
I played around with it and what it means is that the AUDIO FADE is IN ... IN as in "started", or "executed" ...you know what I mean? So ... IN for Audio Fade...

I tried this instead of "out" and works great!