How do I play audio at object

Get help using Construct 2

Post » Sun Jan 12, 2014 10:15 am

I have been using "regular" audio in my game. But now I need a sound that makes it at an object. So the closer I get to the object the harder it sounds.

The object is a cannon who fires a bullet. sound is "poof"(for example) So I want that when I am standing next to the cannon poof is louder then when I am further away from it. I also have multiple cannons.

So i use the action: Play at object.
Then I get some options I dont fully understand
Inner angle:
outer Angle:
Outer gain:


I triend all different kind of settings but none of them work.
I tried looking for tutorials but can't find them about this specific subject.

Can somebody please help me fix this problem. If you need any other information let me know. I rather not give my capx I hope you understand.

Furdy2014-01-12 10:16:00
B
7
S
2
Posts: 140
Reputation: 1,073

Post » Sun Jan 12, 2014 10:23 am

Inner angle and outer angle are to create a cone of sound. If you leave them at there original values, which ara inner:360 outer:360 gain:0, you create a circle of sound around the object instead of directional sound.
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sun Jan 12, 2014 12:51 pm

I still do not understand how it is to operate. i set values to 1000 and still audio not playing (?)
B
109
S
25
G
43
Posts: 1,883
Reputation: 33,553

Post » Sun Jan 12, 2014 2:01 pm

Thank you for your answer. I tried it however nothing changed. I still have that when I am far away from the object I hear it as loud as standing next to it. I tried different outer gain as well.
So far it seems to do the same as action: play
Furdy2014-01-12 14:01:53
B
7
S
2
Posts: 140
Reputation: 1,073

Post » Sun Jan 12, 2014 2:12 pm

Audio manuak

I guess you should change listener z-height, roll-off and/or any other audio settings before noticing any effect.
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sun Jan 12, 2014 3:01 pm

I am making a platform game. Do you have any tips on how to do that with the sound.Furdy2014-01-12 15:02:13
B
7
S
2
Posts: 140
Reputation: 1,073

Post » Sun Jan 12, 2014 3:28 pm

So how do I make the sound right? I wish there was a tutorial about it.
B
7
S
2
Posts: 140
Reputation: 1,073

Post » Sun Jan 12, 2014 4:22 pm

First you should use the audio set listener object action, that will probably help a lot.
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sun Jan 12, 2014 5:13 pm

I set my player object as listener object I tried it on start of the alyout as well as on every tick
B
7
S
2
Posts: 140
Reputation: 1,073

Post » Sun Jan 12, 2014 5:15 pm

Did you have a look at the audio object properties and set them to the values you'd like?
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Next

Return to How do I....?

Who is online

Users browsing this forum: camtray, DevinMurray, Joannesalfa, Lancifer, marcoscodas, Yahoo [Bot] and 12 guests