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"

Local Multiplayer

Hey guys,

I'm trying to copy this fantastic game: https://youtu.be/-A3vNzza-ME?t=109

Whatever direction I take, I'm always running against a wall. I would like to move the 2 Pawns on 1 keyboard, WASD and IJKL (or arrow keys). I tried to put 2 meshes in the default pawn, but I can't add movement to the different meshes, because I only got 1 movement component and also the root is set to the first mesh. So I tried to make 2 Actors, with a set camera (not sure if I should add it as another actor into the world, or add it to one of two pawns and do the math there). But I have no idea how I can move 2 different Pawns with 1 keyboard. I can only posses 1 Pawn at a time, so how can I solve this problem? I really appreciate every single hint that might lead to the solution!! <3

Product Version: UE 4.10
Tags:
more ▼

asked Dec 22 '15 at 01:08 AM in Blueprint Scripting

avatar image

Ninjin
4.2k 88 38 153

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

2 answers: sort voted first

Not what I was looking for. I wanted to control 2 Characters on 1 keyboard, WASD and UPLEFTDOWNRIGHT. You don't need to create another controller nor possess the 2nd Pawn. Just use a MasterController, get the reference from the 2nd Pawn and add input from the MasterController. To see the solution:

2 Player 1 Keyboard Input

more ▼

answered Dec 22 '15 at 05:58 PM

avatar image

Ninjin
4.2k 88 38 153

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

To add 2nd (or more) local player use this node:

https://docs.unrealengine.com/latest/INT/BlueprintAPI/Game/CreatePlayer/index.html

it will add player, create 2nd player controller which can possess 2nd pawn

more ▼

answered Dec 22 '15 at 04:17 AM

avatar image

Shadowriver
37.8k 937 172 1123

(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