Positional audio and distances

0 favourites
  • 3 posts
From the Asset Store
100+ Musical High Quality Sound Effects for your game!
  • Hey there,

    I've used positional audio multiple times in my project already, and for the most part is has worked the way I need it to. However, I seem to have hit a limitation and I'm wondering if there's a way around it. This is what I'm after:

    So if the player is in the red, they hear the music really loudly. If they're in the blue, it fades off the further you get from the source. If you're outside of the blue, you can't hear it at all.

    When I look at the options for positioned audio, I am perplexed as to what the options mean or if this is at all possible. Changing the angles to any value doesn't seem to make a difference. The biggest issue I have is that there doesn't seem to be a way to 'tighten' up the area for where the music is loudest vs where it fades off.

    I'd prefer to do this with C3's built in audio if possible because it's easier to manipulate when it comes to fading and so on.

    Is this something that can work out of the box?

    Thanks

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Hi, maybe this points you in the right direction: you can compare the X of the source to the x of the player. Then subtract or add (depending if left or right from the source) the distance where there should be full loudness. After that adjust the loudness depending on the distance picel value.

    Kind regards

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)