x

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"

How To Receive Inputs From 2 Controllers?

This may seem like an extremely simple problem, but it's been holding back my project for a few weeks now.

I'm making a Paper2D game, and all I want is to implement local two player multiplayer. No splitscreen, just two characters on the screen, each controlled by their own player controllers. However, my actors are never able to receive inputs from more than 1 controller, with one remaining still while the other is able to move.

Receiving inputs from more than one controller doesn't seem to be an issue for anyone else, so I'm hoping there's some easy and obvious method I've just overlooked.

Edit: This is getting tremendously frustrating. I have a game idea who's foundation lies in local multiplayer, and I can't really continue developing it until I get this worked out.

Product Version: UE 4.7
Tags:
more ▼

asked May 29 '15 at 03:44 AM in Blueprint Scripting

avatar image

PolarisInParis
51 3 7 9

avatar image Duncan Dam May 29 '15 at 03:58 AM

i never try but i think for 2nd character you must enable input from 2nd controller.

avatar image PolarisInParis May 29 '15 at 04:08 AM

Any specific way to do that? "Possess" doesn't seem to work for me, nor does "Auto Receive Input."

avatar image Duncan Dam May 29 '15 at 05:04 AM

try to use SetInput

avatar image PolarisInParis May 29 '15 at 05:36 AM

In Blueprints, the only similar item I could find to that was "Set Input Mode Game Only," and that didn't work either.

I think the issue may be lie where the game detects player controllers. I tried another setup where I added "Enable Input," tied to Player Controller 2, and "Disable Input," tied to Player Controllers 0 and 1. It just disabled all inputs, until I removed the "Disable Input," where it would only receive inputs from my keyboard (Player 0/1).

I think it's just ignores my specification of player controller.

avatar image Duncan Dam May 29 '15 at 06:39 AM
avatar image PolarisInParis May 30 '15 at 04:38 AM

That didn't work, either. : (

I appreciate all the help, though. I really think the main issue is that Unreal just won't detect more than one controller.

avatar image sankar112 May 17 '18 at 06:23 AM

Do you want to find new addicting games? if yes, please check these new popular games on Geek for pc.

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

3 answers: sort voted first

I have met the same problem . I have to playercontroller one control by wasd another one is control by direction key. I use creat player funtion in my gamemode blueprint. but seems the second player dosen't receive any input event.

more ▼

answered Dec 14 '16 at 03:33 AM

avatar image

kenshin1987
31 1 4 4

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

create 2nd player controller and spawn 2nd Player Pawn and Posses

alt text

more ▼

answered Dec 22 '16 at 05:23 AM

avatar image

9m_tech
1 1 2

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

To create multiple players in a local game, you really need to utilize the "Create Player" node. This will create separate player controllers for each local player, and enable the use of separate controllers.

The following video goes into the specifics of setting up the system, and I am currently using this method on my own project with success.

Blueprint Implementing Local Multiplayer | Live Training | Unreal Engine

more ▼

answered Mar 21 '18 at 03:15 PM

avatar image

Arceyo
138 1 6 6

(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