LEARN TO MAKE A MULTIPLAYER GAME WITH PHOTON FUSION IN 2024!

Поделиться
HTML-код
  • Опубликовано: 11 янв 2025

Комментарии • 32

  • @Tens_3
    @Tens_3 23 дня назад

    I remember finding out about photon pun, and loved how there where so many tutorials on how to use it, but since moving to fusion, there aren’t many good ones, but this one is definitely a good one!

  • @gamecraft6439
    @gamecraft6439 10 дней назад

    thank you very much bro

  • @m.shahrulnizam4655
    @m.shahrulnizam4655 Месяц назад

    How can i spawn different player model for host and client? any idea? i mean host is cylinder and client is cube, all the client will be cube

  • @nikson12gg
    @nikson12gg 4 месяца назад +3

    I've tried Photon Pun 2 and followed everything in the video guides, but I get errors when joining with a second Unity window. The first window works fine and can see the other player, but the second window throws errors like 'Failed to find a PhotonView with ID=1 for incoming OwnershipUpdate event,' and it can't even see the first player. It's been two days, and I haven't been able to fix it. I'm very tired and a bit frustrated. It's midnight, and I'm considering trying Photon Fusion by watching your video. Is Fusion better, by the way?

    • @jollyname
      @jollyname 3 месяца назад

      you're supposed to use photon fusion not photon pun

    • @nikson12gg
      @nikson12gg 3 месяца назад

      @@jollyname I know. I mean I've tried Pun first as they were showing in the video and it gave me errors; didn't work for me for some reason. Now I wanna try Fusion, using your video guide

    • @cyberduck1311
      @cyberduck1311  2 месяца назад

      @@nikson12gg Sorry for late response, but yes for now I recommend you to use Photon Fusion 2 and there is an also very good documentation you can follow to make your multiplayer game with Fusion 2. Link: doc.photonengine.com/fusion/current/fusion-intro#

  • @MarcoH-i3s
    @MarcoH-i3s 4 месяца назад

    He basicly just explains what Photon fusion gives you as tutorial, but its better then the text.

  • @bharathkumar1585
    @bharathkumar1585 4 месяца назад +1

    how do i make the other player who joined to spawn in one position but i should spawn on the opposite side vice versa but both of us should see themself in left side and the enemy in right side

    • @cyberduck1311
      @cyberduck1311  2 месяца назад

      I'm not sure If I understood your question correctly but to spawn players to left side, and enemies on the right side of game, you can get positions of the left & right side by Debug.log() and paste that Vector3 in PlayerSpawner. For enemy you can create another script which you are going to use Instantiate() for that, and paste the right side position there.

  • @hotmaniaKid
    @hotmaniaKid 2 месяца назад

    adding jumping is so hard for me I have tried but just gotten errors can you help me

    • @cyberduck1311
      @cyberduck1311  2 месяца назад

      You can follow 11:33 closely again to do the work. However, if you are still struggling then you can contact with me by email (satakisiyev8@gmail.com).

  • @rogerd4257
    @rogerd4257 6 месяцев назад

    when i test the final project. the second player appear in another independent room. the 2 player werent in the same scene

    • @cyberduck1311
      @cyberduck1311  6 месяцев назад

      Did you follow all steps in the video?

    • @rogerd4257
      @rogerd4257 6 месяцев назад

      @cyberduck1311 yes, but I saw several tutorials before and not even one can work, so maybe it's my computer problem

    • @cyberduck1311
      @cyberduck1311  6 месяцев назад

      ​@@rogerd4257 I don't think it's a computer problem. I think you may have missed one of the steps in the video.

    • @rogerd4257
      @rogerd4257 6 месяцев назад

      @cyberduck1311 thank you, I'll check one more time. And Your tutorial is awesome BTW 👌.

    • @thumbnasiuminc4373
      @thumbnasiuminc4373 5 месяцев назад

      It's happening to me, too. There is only one player per instance. I'm on a Mac, in case that makes any difference at all.

  • @Tommy-gg5jw
    @Tommy-gg5jw 7 месяцев назад

    how do i get rid of the ui and just if u play the game it just joins a sever all ready?

    • @cyberduck1311
      @cyberduck1311  7 месяцев назад +1

      It's very simple but it takes 2-3 mins explanation. I can make another video about that.

    • @Tommy-gg5jw
      @Tommy-gg5jw 7 месяцев назад

      @@cyberduck1311 yes plz and thanks

    • @MarcoH-i3s
      @MarcoH-i3s 4 месяца назад

      @@Tommy-gg5jw I think if you set the network starter to Automatic

  • @Ersch-ry2gr
    @Ersch-ry2gr 7 месяцев назад

    but how to join if game on other computer

    • @cyberduck1311
      @cyberduck1311  7 месяцев назад

      I joined the game on computer. I didn't exactly get what you mean. Can you elaborate that?

    • @drewltinder9872
      @drewltinder9872 6 месяцев назад

      @@cyberduck1311 I think he means how do you join from outside your network. Port forwarding/etc

    • @JacobAlkhal
      @JacobAlkhal 5 месяцев назад

      @@cyberduck1311 I think he means how can other people join using a different device

    • @cyberduck1311
      @cyberduck1311  5 месяцев назад +1

      @@JacobAlkhal well, if it is the question, you don't need to do anything additional. After you build this game you can share .exe with your other computer. When you open the game in another computer there won't be any problem.

  • @betguy-l2q
    @betguy-l2q 2 месяца назад

    player spawn no working

    • @cyberduck1311
      @cyberduck1311  Месяц назад

      send screenshot of an error to with email: satakisiyev8@gmail.com

  • @nurulhusnanorhazhar328
    @nurulhusnanorhazhar328 5 месяцев назад

    NullReferenceException: Object reference not set to an instance of an object
    PlayerMovement.FixedUpdateNetwork () (at Assets/PlayerMovement.cs:31)
    Fusion.SimulationBehaviourUpdater.InvokeFixedUpdateNetwork (Fusion.SimulationStages stage, Fusion.SimulationModes mode, Fusion.Topologies topology) (at Fusion/Fusion.Runtime/Components/SimulationBehaviourUpdater.cs:246)
    hi~ i hv this error. its the same line and same PlayerMovement script as your's. y do i still hv this error? hope ucan reply to this comment