How do I use positioned sound for top-down games ?

Get help using Construct 2

Post » Sun Nov 13, 2016 9:37 am

Hello !

I’d like to guide the player with sounds in a top-down video game.

The thing is, Construct 2 positioned sound seems to be designed for platformer games. In fact, if the sound comes from the right half of the screen compared to the player’s position, the panning of the sound will be to the right. If the sound comes from the left half, the sound will be paned to the left. Finally, if the player is on the same vertical line, you’ll hear the sound with the same volume in right and left ears.

What I want is that the panning depends on the player’s orientation. If the player looks to the opposite direction of the sound source, the sound is considered coming from behind etc… This way, as you’re looking from above with a character that can move with the 8 directions behavior, you can know if you're going toward the sound source, or if you have to go more on the left, the right and so on.

Do you know a way to achieve this?
Thanks !
B
5
Posts: 2
Reputation: 229

Post » Thu Nov 17, 2016 7:57 am

Check out the examples that come with C2. There is a top-down ex that explains this.
B
13
S
3
G
3
Posts: 70
Reputation: 2,413

Post » Wed Nov 23, 2016 6:01 pm

Thank for your reply. Hower even if it's a top down view, the sound doesn't depend on the player's orientation. I'm trying to do a little of trigonometry to cheat but it's not that great. I'll give the results later.
B
5
Posts: 2
Reputation: 229

Post » Wed Nov 30, 2016 8:17 pm

I see. I'm sure there's a way to make it happen with a little outside the box thinking. Good luck!
B
13
S
3
G
3
Posts: 70
Reputation: 2,413


Return to How do I....?

Who is online

Users browsing this forum: duke2704 and 1 guest