0 votes

Hi all.

For the game I'm working on, the "Game Master" needs to know how many players there are, and who's in control of which army.

How would I go about that?

in Engine by (198 points)

Is it p2p or do you have a server? If its a dedicated server, just store the numbers in an array by sessions, if its p2p, send the number in a packet to every player. You can increment/decrement it on connect/disconnect.

I haven't decided yet which one the game should go with, but I'll keep this in mind.

Please log in or register to answer this question.

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.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.