Це відео не доступне.
Перепрошуємо.

How to do Same Keyboard Local-Multiplayer In UE4!

Поділитися
Вставка
  • Опубліковано 19 лют 2022
  • Here's a tutorial on how to do Same Keyboard Local-Multiplayer in Unreal Engine 4!
    It's something I learned at the beginning of the year for a college project and I found that everyone else struggled with this too. I thought I'd make a tutorial on this and this is it!
    The video quality is dreadful when it comes to the actual tutorial part, sorry about that, I'm going to tweak those settings for the next tutorial to make sure it's much better.

КОМЕНТАРІ • 30

  • @BlueJollyRancher0
    @BlueJollyRancher0 Рік тому +3

    This is the most useful thing I've ever seen while trying to code something.

  • @javierorellanos
    @javierorellanos 2 роки тому +4

    I have been looking for something similar for a long time, at first I did not understand, but after watching the video a couple of times, everything worked . Thank you

  • @PG134JT
    @PG134JT 4 місяці тому +2

    Really great video, would you consider creating another video for UE5?

    • @arch5503
      @arch5503  4 місяці тому

      Maybe! I'll look into it :)

  • @Kobraisten
    @Kobraisten 9 місяців тому +2

    liked kaz of the burp, mate, nice job!

  • @Benjamin-vx2ot
    @Benjamin-vx2ot 2 роки тому +3

    this is where we fix that.. *BURP* xD
    *"setPlayerIndex* -> there i am missing the "target-input" any idea why?

    • @arch5503
      @arch5503  2 роки тому +1

      Hahahahahaha, you might not be pulling "setPlayerIndex" from the character you've casted from so it doesn't know who to call it for :)
      If that doesnt help, shoot a message in the discord server in the description with a photo and i'll take a look for ya :)

  • @Dinozaur123
    @Dinozaur123 2 роки тому +2

    Thanks!!

  • @niconico3446
    @niconico3446 8 місяців тому +1

    Hello,
    Thanks for your video.
    I have an issue that you may have a solution.
    I launch my game in main menu level, I choose two players skins and hit Start button to open Game level.
    All is good at this point, I have my two players that I can control.
    When one of the two player win in my game, the game stop and change level to go on main menu level where is the start button that I hit to play again.
    It reopen the game level.
    At this time, two players spawn normally BUT one other actor spawn (a copy).
    Again I restart and two players plus two copy. Then three copy, and again.
    ...
    The create player function create each time an other copy.
    Do you have any idea and solution ?
    Thanks for your help and thanks for this video.

    • @arch5503
      @arch5503  8 місяців тому

      Hi there!
      The issue you're having is, when a new split-screen player is created, they don't get removed until you call to "remove player"!
      You should look to delete players at the end of a game (or before you're about to create players on BeginPlay) and hopefully that should work for you!

    • @niconico3446
      @niconico3446 8 місяців тому +1

      @@arch5503 I will look for that. I'm sure it will work.
      Thank's for your help =D

    • @arch5503
      @arch5503  8 місяців тому

      @@niconico3446 No problem! I hope it works!

  • @aviationengine6701
    @aviationengine6701 2 роки тому +2

    Thankyou for thsi tutorial! How would you do this if your second player was a different character than maincharacter?

    • @arch5503
      @arch5503  2 роки тому +1

      If your second player is a different character, cast to that character instead and it should work :)
      And thank you!

    • @aviationengine6701
      @aviationengine6701 2 роки тому

      @@arch5503 So I tried that but it still only gives me 2 of the main character, in my game mode my default pawn class is my main character and my player controller is my custom player controller do you think that's the problem? If I set default pawn (in the game mode) to none the view is under the map and I get a ton of errors, thanks

    • @arch5503
      @arch5503  2 роки тому

      @@aviationengine6701 your second player will be the same as the first (which is whatever you set the default pawn to in your world settings) so there shouldnt be any problem with following the video itself as that's how i do it :P

  • @defeat575
    @defeat575 2 роки тому +1

    try to destroy the player 1 actor and see that the control over the player 2 actor is gone, seems like the destructor destroys something from the instance in which it is not supposed to change anything

    • @defeat575
      @defeat575 2 роки тому

      same happens with disable input(self)

    • @arch5503
      @arch5503  2 роки тому

      @@defeat575 heyo! This is because the player 1 controller takes priority over the second controller so all the movement occurs in the player 1. If you delete or disable player 1, player 2 can't move because everything is handled by player 1.

  • @El_PolPa_VideoGames
    @El_PolPa_VideoGames Рік тому +1

    Muy útil el tutorial :)

  • @mleduc445
    @mleduc445 Рік тому

    I follow all the video and my cast failed and i don't understand why, can you help me?

  • @mihirverma4067
    @mihirverma4067 2 роки тому +1

    Plz 🥺 help me i can't get second player on screen by using player1

    • @arch5503
      @arch5503  2 роки тому

      Hey there, im a bit confused what you mean, is the screen not doing splitscreen but the second player is spawning?

    • @mihirverma4067
      @mihirverma4067 2 роки тому

      I just want two different players on screen but only one player and it's copy is on screen .how can I spawn two different players from character class

    • @arch5503
      @arch5503  2 роки тому

      @@mihirverma4067 If you wait a couple of days i'll make a video explaining for you :)

    • @mihirverma4067
      @mihirverma4067 2 роки тому +1

      @@arch5503 yes i will thank you for your help

    • @mihirverma4067
      @mihirverma4067 2 роки тому +1

      But i want this on same keyboard controls used by both players , I think which means only one controller is going to be used i might be wrong . NOT like local multiplayer.

  • @ludwigwetzel
    @ludwigwetzel Місяць тому

    this is a bit fucked to be honest, but nice workaround

    • @arch5503
      @arch5503  Місяць тому

      @@ludwigwetzel yeah, I’m probably gonna do another video improving this lol