How do I distance the sound effect?

Get help using Construct 2

Post » Mon Jan 09, 2017 1:14 pm

Greetings there! ^_^
So i'm trying to play a sound at an object with (Let's say an orb) and i'm trying to decrease the sound as the player walks further away from the orb. As if it really is playing from the orb and not in 'general'.

Any help? I have many sound FX that are to be used like this, and manually increasing/decreasing it seems a bit too much.
B
12
S
3
Posts: 164
Reputation: 1,530

Post » Mon Jan 09, 2017 5:29 pm

Nobody knows?
B
12
S
3
Posts: 164
Reputation: 1,530

Post » Mon Jan 09, 2017 5:47 pm

You can use the Audio "Play at Object" action in the Advanced Audio sub options
B
20
S
9
G
4
Posts: 473
Reputation: 4,260

Post » Mon Jan 09, 2017 6:45 pm

mekonbekon wrote:You can use the Audio "Play at Object" action in the Advanced Audio sub options


Yes but the sound remains the same, no matter how far away that object is.
B
12
S
3
Posts: 164
Reputation: 1,530

Post » Mon Jan 09, 2017 6:48 pm

Have you checked if "Advanced audio supported"?
ImageImageImage
B
71
S
22
G
247
Posts: 3,756
Reputation: 137,558

Post » Mon Jan 09, 2017 6:57 pm

@Greaver First, don't forget to set a listener object (like the player sprite for example) at the start of the layout. Then you add the positioned audio. Also, there are settings in the audio properties bar that you may need to adjust as well.
B
61
S
20
G
56
Posts: 1,077
Reputation: 35,991

Post » Wed Jan 11, 2017 12:55 am

blackhornet wrote:Have you checked if "Advanced audio supported"?

Hey sorry but what is that? Where can i find that? ^_^
B
12
S
3
Posts: 164
Reputation: 1,530

Post » Wed Jan 11, 2017 12:56 am

Burvey wrote:@Greaver First, don't forget to set a listener object (like the player sprite for example) at the start of the layout. Then you add the positioned audio. Also, there are settings in the audio properties bar that you may need to adjust as well.


Hehe hey, sorry but the more i read about it the more confusing it gets! Listener should be on the player? Also on the object playing the sound or?? Makes no sense so far :D
B
12
S
3
Posts: 164
Reputation: 1,530

Post » Wed Jan 11, 2017 1:34 am

The listener object is usually the player sprite. You place the positioned audio on the object where you want the sound to come from. For example, if you have an explosion, you can place the sound to the explosion. Then the closer the listener object (player) is to the explosion, the louder it will be. Of course it's not just the volume, if the explosion is to the right of the player, it will be heard in the right speaker etc.

Edit: By the way, there's an example capx that comes with construct 2 in the example files. If you haven't already, you might want to take a look at it.
B
61
S
20
G
56
Posts: 1,077
Reputation: 35,991

Post » Wed Jan 11, 2017 2:12 am

It's in the manual: https://www.scirra.com/manual/109/audio
Search for "Advanced audio supported".
ImageImageImage
B
71
S
22
G
247
Posts: 3,756
Reputation: 137,558

Next

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 6 guests