playMaker

Author Topic: Play Random Sounds fades when character moves.  (Read 1052 times)

Qbanyto

  • Full Member
  • ***
  • Posts: 138
  • Vista Larga, Paso corto
Play Random Sounds fades when character moves.
« on: January 04, 2022, 10:29:55 PM »
So i LOVE this action here:

https://hutonggames.fogbugz.com/default.asp?W212

but if I use it on a moving character, the sound doesn't "follow" with the character movement. Almost as if the character "drops" the sound at the vector3 location it's at. If I move, the sound fades away, and if i come back to the location where the sound started to play, the sound fades back in.

How can this sounds "stay" with the player? I think its becuase it's not using "one shot" audio method.


Can someone edit this action to use the "one shot -audio play" kind of sound? or create a custom behavior to play random one shot sounds?

BrotherWrong

  • Playmaker Newbie
  • *
  • Posts: 14
Re: Play Random Sounds fades when character moves.
« Reply #1 on: January 05, 2022, 08:54:46 AM »
Have you tried disabling "Wait For End Of Clip"? Otherwise the audio will not allow any changes to it's properties until the clip is done playing.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: Play Random Sounds fades when character moves.
« Reply #2 on: January 05, 2022, 12:52:35 PM »
Hi.
Make an audio Array, then use Array Get Random
Then Audio Play.
this will use the Audio source on the object