Input for second player?

I’m trying to get a second player spawned and controlled by something, I’ve currently tried:
Spawn Player, which managed to spawn a new player but received no input
Duplicating the 2D playerCharacter blueprint and creating a new input axis mapping to cause it to move with left and right, after removing the ability to move left and right for the original blueprint
Neither of these worked. How can I get the second player to receive input? On a side note, if I have a second controller plugged in will the second player receive input?

There is no built-in way for keyboard/mouse input to reach any other player controllers.

Easy way: Plug in some gamepads.

Hard way: Search for some patches to apply to the engine.

Hacky way that works for the keyboard: Set up Duplicate input Actions/Axis stuff (like Move2, Jump2, etc.) In Player Controller 0, get a reference to Player Controller 1 and then pass Jump2 input that reaches Player Controller 0 over to Player Controller 1’s Jump event.

I have made a quick tutorial on creating a multiplayer game with separate player inputs if that’s what you’re looking for! The tutorial can be found as the accepted answer to the question linked below. I hope this helps!

1 Like