I’m having issues with the input for multiple controllers.
At the moment, I have modified the Lerpz 2d platform demo so that it has 2 players running around. I have also modified the PlatformController script for the second character so that it accepts different input from the input manager.
In the input manager, I’ve added a few more actions (Horizontal2, Jump2) as actions for the second player.
Whilst I don’t have any issues with character movement using the analogue sticks - left stick on one character makes the first character move and the left stick on the other controller makes the other character move, the issue comes from pressing a button to make the players jump.
I’ve set it that the A button on the controller makes the player jump (joystick button 0) for both ‘Jump’ and ‘Jump2’ in the input manager. Also change the joy num to 1 for ‘jump’ and 2 for ‘jump2’. However for some reason, both characters jump whenever I press the A button or either controller.
I had the same problem some weeks ago, took me a while to figure it out:
Actually, the joystick specified in Joy num doesn’t matter for buttons - what matters is the Positive button entry:
Try replacing the entry “joystick button 0” by “joystick 1 button 0” respectively “joystick 2 button 0”.