playMaker

Author Topic: Play sound without loss of volume [SOLVED]  (Read 962 times)

3D Lunatic

  • Playmaker Newbie
  • *
  • Posts: 17
Play sound without loss of volume [SOLVED]
« on: October 29, 2019, 05:41:52 PM »
I'm making a 2D pinball game.
When I play sound on an object, such as when the ball hits something, the volume of the sound seems diminished. The camera is at Z of -10 so this could be due to the distance to the object.
When I instead try to use the camera as the source of the sound, I don't hear anything at all. I'm using Pro Camera 2D to follow the ball, perhaps this is interfering with the sound... I don't know.
Sounds placed on other game objects emit, but at diminished volume. Is there a way to play sounds ignoring the distance? Can you somehow tell Unity not to apply the lowering of volume due to distance? Is there a PlayMaker action that I should use to achieve this?
As a second question, on which game object should I place my game music, and which action is best to use for that? Thank you.
« Last Edit: October 30, 2019, 03:06:10 PM by 3D Lunatic »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Play sound without loss of volume
« Reply #1 on: October 30, 2019, 02:50:03 AM »
Hi,

 you need to setup your audio source properly, bypassing all effects.

 you can also put the audio source on the same gameobject as the audio listener and that will resolve spatial distance.

Bye,

 Jean