How do I play at object

Get help using Construct 2

Post » Sat Dec 06, 2014 4:10 am

when i use Play at object and apply it on the player , the sound doesn't really follow the player , it seems like it's fixed in the top left corner when i get closer to it it get louder when i move away it sound far and deep, so it seems fixed in the corner not playing in the player position, what i wanted to know if this is a bug or something ,

what i wanted to do is a multiplayer shooter game i wanted the shot sound to be played in the player position when another player is far from you you will hear deep and far , and if he is too close it will be played loud and clear , i'm using the wrong method ?
B
12
S
6
Posts: 118
Reputation: 1,466

Post » Sat Dec 06, 2014 5:13 am

Should work. Something is wrong.

Capx please. ;)
Don't lose your work. Backup your game with Dropbox.
B
44
S
10
G
10
Posts: 1,106
Reputation: 9,187

Post » Sat Dec 06, 2014 5:46 am

oh sorry i can't share a capx of the project :D a lot of work is there :\
B
12
S
6
Posts: 118
Reputation: 1,466

Post » Sat Dec 06, 2014 6:08 am

Can you replicate the error in a new project, and post a capx of that?

I vaguely remember having a problem like this when I was learning to use the audio plugin, but I can't remember what was causing it... :?
Don't lose your work. Backup your game with Dropbox.
B
44
S
10
G
10
Posts: 1,106
Reputation: 9,187

Post » Sat Dec 06, 2014 6:35 am

i didn't use advanced options of audio plugin , i always used Play didn't need Play at position or at object in other projects.


ok here is an example project for my problem
You do not have the required permissions to view the files attached to this post.
B
12
S
6
Posts: 118
Reputation: 1,466

Post » Sat Dec 06, 2014 7:54 am

You needed to assign your player as the 'listener object'; ie., the reference point for panning/doppler effects. Here's a modified capx; look for my comments by searching for Tmod:

https://www.dropbox.com/s/qxjo50rsegdjx ... .capx?dl=0
Don't lose your work. Backup your game with Dropbox.
B
44
S
10
G
10
Posts: 1,106
Reputation: 9,187

Post » Sat Dec 06, 2014 10:05 pm

Thank you @TiAm, this is great
B
12
S
6
Posts: 118
Reputation: 1,466


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 8 guests