Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Bainto on June 24, 2018, 10:35:50 PM

Title: Audio (Solved)
Post by: Bainto on June 24, 2018, 10:35:50 PM
Im trying to get a setup for audio to fade in and out when a player enters a trigger zone.

Currently I have
Start ->Trigger Enter->Audio Play ->Trigger Exit -> Audio Stop -> Trigger Enter -> Audio play (this section looping back to the play so everytime player enters it will know to continue instead of stop) I know theres a way but i havent figured it out yet. Im new to both playmaker and coding so be gentle :P
Title: Re: Audio
Post by: djaydino on June 25, 2018, 07:09:44 AM
Hi,
Maybe you want to use 'audio pause'?

If you want to 'fade' the volume, you can use 'Audio Fade In' and Audio Fade Out'
These to are custom actions which you can find on the Ecosystem (https://hutonggames.fogbugz.com/default.asp?W1181) (along with many other custom actions) :)
Title: Re: Audio
Post by: Bainto on June 25, 2018, 08:33:41 AM
thank you :D anywhere specific i should place them in order to achieve my ability to loop when the player re-enters and re-exits
Title: Re: Audio
Post by: Bainto on June 25, 2018, 09:15:29 AM
ok so i tried this 2 ways i know im missing something and i know its going to be easier than im making it. 1st attempt i added audio fade out as a state and audio fade in as a state. When i did this audio fade out started the sound from the beginning and didnt really sound like it was fading out, and audio fade in seemed to do nothing. they transitioned correctly but didnt seem to work.

So then I removed those 2 and added them as a piece to the current states of audio play and audio stop. but they dont seem to have any effect on the audio it shows it activate and work but doesnt do anything... any advice?
Title: Re: Audio
Post by: djaydino on June 25, 2018, 12:07:38 PM
Hi.
I know that there where some changes to the audio system so i will have a look at the actions when i get home.
Title: Re: Audio
Post by: Bainto on June 26, 2018, 10:07:38 PM
Thank you. Im currently using the latest version (non-Beta) for windows if that helps any :D
Title: Re: Audio
Post by: Bainto on June 29, 2018, 05:13:26 PM
Did anyone find anything out? Still trying with no luck
Title: Re: Audio
Post by: djaydino on July 01, 2018, 08:08:35 PM
Hi.
The actions don't work indeed .

So i made a new action called 'Audio Fade'
Which you can use to fade in AND out.
With a ease in/out and linear mode.

You can get it on the Ecosystem (https://hutonggames.fogbugz.com/default.asp?W1181)
Title: Re: Audio
Post by: Bainto on July 02, 2018, 02:12:21 AM
perfect! TY :D
Title: Re: Audio (Solved)
Post by: PlaymakerNOOB on September 13, 2018, 12:58:06 PM
It appears on the ecosystem that 'Fade In' is actually 'Fade Out' and 'Fade Out' is actually 'Fade In'.  Is it possible to get these corrected?

Because if you set an audio clip to play at volume 1, and then use Fade In at 5 seconds, the volume on the audio clip moves from 1 to 0 over 5 seconds, indicating that its acting as a Fade Out action.   
Title: Re: Audio (Solved)
Post by: jeanfabre on September 14, 2018, 03:35:33 AM
oups :)

 corrected, please update from the ecosystem. Let me know if all is ok on your end.

 Bye,

 Jean
Title: Re: Audio (Solved)
Post by: PlaymakerNOOB on September 14, 2018, 08:16:56 AM
Thanks!