0 Favourites

How do I Use Positioned Sound?

  • I would like to implement advanced features like positioned sound in my game, but can't figure out how to work it. I also tried searching for a tutorial but couldn't find one. Anyone know how? Thanks in advance

  • First add your listener object (usually the player sprite) on the start of the layout. Then add the sounds to the objects you want in the event sheet. Then click on the Audio properties menu and tweak the different settings until you get everything exactly how you want. The C2 manual will tell you what all the different settings do.

  • If I remember, in the examples folder of c2, is a capx that does what you need.

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • First add your listener object (usually the player sprite) on the start of the layout. Then add the sounds to the objects you want in the event sheet. Then click on the Audio properties menu and tweak the different settings until you get everything exactly how you want. The C2 manual will tell you what all the different settings do.

    Thank you, I actually have since figured it out. I should have played with it more before posting

  • Does it lag or did I do something wrong when I tried it last year? I then decided only to use play instead of this. Any opinions?

  • tomi71 If your audio was lagging then you were most likely playing on a device that wasn't up to specs.

    Or, there is a known browser issue where when you play positioned audio for the first time there will be a pause while the sound information loads up. You can work around this by playing the positioned audio for the first time at the start of the layout at something like -1000db. (You should do this at before the player starts the game, like on the title screen layout for example). That allows the positioned sound info to get processed by the browser at the start of the layout without the player actually hearing the sound.

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
99 10,124
karshinkoff's avatar
karshinkoff
Unread hot topic
56 4,727
MPPlantOfficial's avatar
MPPlantOfficial
Unread hot topic
80 10,053
jonathanbencomo's avatar
jonathanbencomo