+2 votes

Hi there!

I'm clueless of how to implement a local multiplayer logic into my game. It's a simple top-down shooter (nothing special really, since I'm pretty much just starting with Godot and game dev. in general) and I want to instance n-player_classes controlled separately by each controller/player

The problem is that I have a player class (controlled via the input manager) that should be instanced as soon as someone is connecting his controller or press a button -> how can I tag/assign this particular instance to the connected controller? Furthermore is it possible to extend the player count dynamically with each new controller connected? Unfortunately I couldn't find anything anywhere about local (not online) multiplayer implementation.

It would be awesome if someone/you could explain the general approach towards this problem. It's more important to understand the solution instead of copy/paste code.

Thanks guys :D any help is very much appreciated!

in Projects by (22 points)

You've looked at the documentation on higher level multiplayer, right? The implementation can work for local player, as well as online, games.

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.