playMaker

Author Topic: Play Sound - Range  (Read 2390 times)

magique

  • Playmaker Newbie
  • *
  • Posts: 20
    • Magique Productions, Ltd.
Play Sound - Range
« on: April 13, 2016, 11:08:16 AM »
I'm struggling with getting my Play Sound action to work the way I want. I have a trigger that plays a door opening animation and a creaking sound when the player enters a room. The player is maybe 20 feet away from the creaking door. The sound I have chosen is fairly loud in its original form, but when Playmaker plays it using the PlaySound action, I can barely hear it. Normally, I would use an AudioSource and adjust the 3D sound properties of min/max range so that the volume at certain distances is more to my liking. However, I don't see any way in Playmaker to adjust these parameters for the PlaySound action. Is this not possible?

magique

  • Playmaker Newbie
  • *
  • Posts: 20
    • Magique Productions, Ltd.
Re: Play Sound - Range
« Reply #1 on: April 13, 2016, 11:22:35 AM »
Nevermind. I found a sample modified PlayRandomSound that adds spatialblend. I took that and added minDistance to it so that I can get the proper relative volume I want. If anyone else is interested, this is the post I got the modified PlayRandomSound code from.

http://hutonggames.com/playmakerforum/index.php?topic=9812.0

dudebxl

  • Hero Member
  • *****
  • Posts: 602
Re: Play Sound - Range
« Reply #2 on: April 13, 2016, 05:44:04 PM »
Also on ecosystem: 'Play Audio Advance'

More options for your sound setup..

magique

  • Playmaker Newbie
  • *
  • Posts: 20
    • Magique Productions, Ltd.
Re: Play Sound - Range
« Reply #3 on: April 13, 2016, 05:48:46 PM »
Thanks for the info. I wonder why these fundamental features aren't just part of the base Playmaker actions.