+2 votes

I want to have it so that two people can join the game at once with the same controllers. I want it so that if two people had for example two snes controllers that could connect to a computer they could control two different characters with the same input just on different controllers. I’ve watched tutorials but they always have one person using the keyboard and the other using a game pad. I want something like how ps4 or Xbox does it with local multiplayer, splitscreen. My version of Godot is 3.2.1 stable

in Engine by (19 points)
edited by

1 Answer

+1 vote
Best answer

Hey !

You can set controll up in the Input Manager, and you can also choose the device index for the Action. So if you have for example two xBox Controllers, one of them has the index (The index is like the Number of the Controller) 0 and one has the index one.

You can then set up actions for the Controller 0 and set the same actions up for the Controller 1. Now you can use them in your code.

(Naming them accordingly really helps in this case, e.g 'snes1forward' and 'snes2forward')

by (269 points)
selected by

Thank you that worked!

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.

Categories