Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started 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
-
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) :)
-
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
-
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?
-
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.
-
Thank you. Im currently using the latest version (non-Beta) for windows if that helps any :D
-
Did anyone find anything out? Still trying with no luck
-
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)
-
perfect! TY :D
-
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.
-
oups :)
corrected, please update from the ecosystem. Let me know if all is ok on your end.
Bye,
Jean
-
Thanks!