GMS 2 Setting up a local multiplayer lobby with 4 different gamepads

R

Rhatos

Guest
I've been trying to work this out for a while and I just can't seem to get it.

What I'm asking is how do you assign a controller to a "player number" when they press A.
Example: 4 friends are playing, Friend A pressed A and his controller is now assigned to player 1, Friend B pressed A and his controller is now assigned to player 2, and so on.

I know I have to use arrays and loops. But I can't figure it out exactly.

I appreciate any help.
 
Top