Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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?

Product Version: Not Selected
more ▼

asked Jan 11 '17 at 04:55 AM in Blueprint Scripting

avatar image

1 1 1 2

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

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.

more ▼

answered Jan 12 '17 at 07:11 PM

avatar image

2.1k 67 84 77

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

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!


more ▼

answered Jan 13 '17 at 12:04 AM

avatar image

190 35 29 54

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question