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)
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.
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?
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…
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.
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!