0 Favourites

Sound direction depending on player's viewing direction

  • Hey folks,

    I am working on a top down game with positional audio.

    Let's say the player (the listener object) is facing north and a sound emitting object is left of it. The player then rotates 90 degrees clockwise so logically the sound would be behind the player, from their listening perspective. Any idea if that is possible with construct?

    So far nothing happens when I rotate the player.

    Cheers,

    Toby

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • play sound at object. and you have angles to play the audio towards, and have a angle to increase or decrease the audio ... you can make the play audio at angle of position of player and curent sound position and update it... however i think will restart the audio...

    this is best to use for car engine sounds short FX's and not music... but im not entirely sure if the restart of audio to update the angle is necesary or automatically updates once the angle is set and player position is changing interactively.

  • Yes, thank you I completely forgot about that.

    Yet, the problem with the restarting audio still persisted. I didn't mention that my prototype is an audio-only game. Since the player won't see the objects anyway, I ended up rotating the whole world around the player, this way the audio doesn't restart.

    This might not be a solution if you are working with visuals, though.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
0 Favourites
[plugin] Youtube player
175 20,551
rexrainbow's avatar
rexrainbow
Unread hot topic
0 Favourites
Grid based lighting/field of view
65 15,239
elwinalice's avatar
elwinalice
Unread hot topic
80 10,065
jonathanbencomo's avatar
jonathanbencomo