Proximity Voice extension

Add proximity-based voice chat to your multiplayer GDevelop games. Hear players only when they’re nearby. Walk away and voices fade out. Get closer and they get louder.

Using standard WebRTC with stun/turn servers and a separate signalling server (in Node.js)

https://www.youtube.com/watch?v=augbix7HneI

Perfect for party games, MMOs, hide-and-seek, roleplay servers, and any multiplayer game where “who’s in earshot” matters.

It supports both proximity and “flat” voice chat, as well as multiple rooms (so for example two teams can have separate voice channels). You can also un/mute yourself, all the other players or each player individually.

Go download it here:

https://avram.itch.io/proximity-voice-gdevelop-extension

Cool! Does this only work with the built-in multiplayer, or is it possible without multiplayer?

It works completely separately of, but fits perfectly in the built-in multiplayer.

You can use it with any other kind of multiplayer as long as you can provide it a unique room/lobby/server ID and each player has separate id. But I guess you need some kind of multiplayer, or who are you gonna talk to? :smiley:

I’m going to publish the game on Yandex Games, but there’s no built-in multiplayer. And there are no other multiplayer extensions for the lobby, such as 2-player mode…

Well there is THNK and I think Pandako made a multiplayer extension, but that’s out of the scope of this topic.

I mean, technically, you could add it to a single player game too, and have players talk to each other, but nobody would know who they are talking to.

Players can know who they are talking to because Yandex can read the player’s name and ID.
I know these multiplayer extensions, I’ve searched the entire internet.
I think the best solution is photon. But then I’ll create an extension for this.

A-a-a-a-a-a-a-a-a-a-a!!!
I remembered that it wouldn’t work for me. Because the game won’t be allowed if the players spam and aren’t blocked!

We just did a public test with 4 players and it works! Mostly two players speaking here but you can clearly hear how the volume drops down with the distance.

Special thanks to @ZeroX4 and Plum (not sure about his @) for helping me test this! :tada:

Dat fart when i left

I just want to say it wasn’t me

I just published the itch.io page for this extension:

https://avram.itch.io/proximity-voice-gdevelop-extension

no problem i didnt have forum yet but now i do

Would this work on 3D as well or is it just for 2d?

yes, if you add the behavior to the 3d object it will use x/y/z for distance check, otherwise only x and y

does this work in exported web games?

well of course, that is the point :smiley:

hmm…if i implement this into my game, it might turn into a TF2 lobby, so…

No way @Avram you are a legend. This thing is soooo crazyyyy​:fire::fire::fire::fire:

I need this for my multiplayer game.