+1 vote

I'm making a game where when you want to join the game, you'll be taken to an existing server if one exists and is not full, or if their is no available server, it will create a new one. The only problem is I don't know how I'd check to see if their are any available servers. How should I go about doing this?

asked Jun 12, 2019 in Engine by GoGirlGaming (31 points)

1 Answer

0 votes

You would have a master list server, which keeps track of all of the sessions available. When you want to join a game, you connect to this server, and this server will see who else is online... if you're the only one on... it tells you so that you can host your own server and send the master server your information so that people can connect to you. When another person wishes to join, it connects to the master server, who tells them that you have a session available. The master server sends the other player your information so that they can connect to you.

answered Jun 12, 2019 by sparkart (327 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.