Connection & Basic Movement | How to Make a Multiplayer Game With Fusion 2 - Part 1

Sdílet
Vložit
  • čas přidán 27. 08. 2024

Komentáře • 63

  • @PhotonEngine
    @PhotonEngine  Před 6 měsíci +7

    Thanks for watching!
    Watch Part 2: czcams.com/video/rj0DaT8v17A/video.html
    Download the Starter Project: doc.photonengine.com/fusion/current/tutorials/multi-climb
    Photon Dashboard: dashboard.photonengine.com/
    Tutorial Series Playlist: czcams.com/play/PLAkOwsOxpAvriKhkf8LQKB9DPONAfSEya.html

  • @tomweiland
    @tomweiland Před 6 měsíci +17

    This tutorial really helped me to learn how to use Fusion! Keep the quality content coming 😉

    • @paradonmusic
      @paradonmusic Před 6 měsíci

      Where have I seen this guy before? 🤔

    • @tomweiland
      @tomweiland Před 6 měsíci

      @@paradonmusic ඞ

    • @copperdevs
      @copperdevs Před 6 měsíci

      @@paradonmusic i wonder where

    • @preloadingwastaken
      @preloadingwastaken Před 6 měsíci +1

      Hmmm i wonder where... I feel like this person is the one who made this tutorial, but i'm probably wrong ;)

    • @BadBanana
      @BadBanana Před 6 měsíci

      Is this you Tom?
      Grats on employment with Photon
      Proud of you sir 👏

  • @famousHero007
    @famousHero007 Před 19 dny

    I like how this is low-level enough that I can learn the different steps required for network gameplay while being abstract enough to allow fast iteration!! Keep up the good work!

  • @mesopable
    @mesopable Před 4 měsíci +2

    These videos truly highlight the power of Photon services. Great networking, easy implementation, freedom for developers. Keep on rocking Photon crew!

    • @PhotonEngine
      @PhotonEngine  Před 4 měsíci

      Thanks for watching and for the kind words! I'll make sure to pass them on to the team ❤

  • @Meepeh.
    @Meepeh. Před 6 měsíci +5

    We do love photon around here

  • @StarTair18
    @StarTair18 Před 3 měsíci +3

    This is great, but it's too complicated. When using Pun you only need like 3 additional lines of code and then slap on some components and there you have a multiplayer game

    • @fafase
      @fafase Před 20 dny

      Maybe the intent here is to allow more control and flexibility. Usually less code means less freedom. But I font know PUN so maybe it is easier

  • @fholm
    @fholm Před 6 měsíci +2

    Awesome tutorial, absolutely loved it!

  • @FarSam25
    @FarSam25 Před 2 měsíci

    you guys are amazing! keep it up !❤❤

  • @hamdikhouaja5410
    @hamdikhouaja5410 Před 6 měsíci

    Finally, Officiel tuto for Fusion2! Thank you !! Is it possible to make another tuto for Shared Mode as Host ??

    • @PhotonEngine
      @PhotonEngine  Před 6 měsíci +1

      Thanks for the feedback! There is more content to come and we will consider your suggestion, but in the meantime consider taking a look at the Shared Mode Basics tutorial on our website (if you haven't already): doc.photonengine.com/fusion/current/tutorials/shared-mode-basics/overview
      We also just released our Fusion Quiz Network Sample which is a great sample to get started with Fusion Shared Mode: doc.photonengine.com/fusion/current/game-samples/fusion-quiz-network

  • @Malonik
    @Malonik Před měsícem

    I'm a noob, I'm up to the inputmanager script section and my visual studio isn't doing what the one in the vid does. So when I try and do the quick actions nothing happens or comes up. That hasn't been a huge drama up to this point as I can just pause and manually copy from the video however in this step the lines go off the edge of the video so I can't see what's there to copy it. Any idea why my VS isn't behaving the same? Or is there somewhere I can pull the code from to get me through this step?

    • @Malonik
      @Malonik Před měsícem

      I figured out what was going wrong, in unity I needed to go into edit > preferences > external tools and set the external script editor as visual studio. I'm not sure if you did this and I missed it but thought I'd update here in-case anyone else runs into the issue. :)

  • @klimklymenko3585
    @klimklymenko3585 Před 5 měsíci

    Keep it up! Looking forward for more Fusion tutrorials

    • @PhotonEngine
      @PhotonEngine  Před 4 měsíci +1

      Thanks for watching! Here is the second part of the series: czcams.com/video/rj0DaT8v17A/video.html

  • @user-es4fx7wo6r
    @user-es4fx7wo6r Před měsícem

    honestly its very owerwhelming and alot complexity for new ppls. As new to Fusion (almost new to multiplayer but still) - there is so much components and classes that u adding and start to use right away like its obvious, but i have only questions - "what is this?", "how it works?" , etc, insane amount of new terminology and classes that wasn't explained at all.

  • @cjdev16
    @cjdev16 Před 6 měsíci +2

    Nice tutorial

  • @chetnaya411
    @chetnaya411 Před měsícem

    Is this tutorial using shared mode or host mode ?

  • @_dodoaldhah6744
    @_dodoaldhah6744 Před 2 měsíci

    I'm making an online game and I'm having a problem on input collisionenter

  • @a-cj8xu
    @a-cj8xu Před 5 měsíci

    Thank you! how to load a scene and keep score, runner etc.. when an object is triggered?

  • @GameDevASMR
    @GameDevASMR Před 4 měsíci

    Very cool tutorial thanks. I have a question, why is the camera logic part of the networking logic? As each client has its own camera, and camera shouldn't impact gameplay/logic, I thought the camera would not be networked, and so you would implement camera logic like in any Unity project? (each client has only one camera, positioned based on its own character and inputs, so no networking at all)

    • @PhotonEngine
      @PhotonEngine  Před 4 měsíci

      Thanks for watching! You are correct-each client has its own camera, and the camera logic itself should not be (and in fact _is_ not) networked. If you look at the CameraFollow class, none of the code in there has anything to do with networking and it could just as well be used in a singleplayer game.
      However, we do network the mouse input (like other input) because the player's view direction needs to be synchronized so that the server can correctly execute logic that depends on/is affected by it (such as calculating the movement direction or raycasting in the correct direction for things like grappling and shooting).

  • @mk-3079
    @mk-3079 Před 5 měsíci +1

    I tried following and it's all nice and well but what if I want to make my own lobby and game scene...Like it's easy to do when you have Menu class that's already made but that's not really a tutorial is it. Is there somewhere a simple no nonsense guide on Photon Fusion where when I create a game and transition to game scene where I can spawn a player. I tried this tutorial but without Menu Class you provided GameLogic is not getting called. How difficult it is to simply when I StartGame and transition to a next scene that I can simply debug.log(player spawned) or something like that...Enough with abstract bullshit classes

    • @mk-3079
      @mk-3079 Před 5 měsíci +1

      Is there some secret code in all of yours Menu classes and interfaces that makes GameLogic actually be called and actually spawn a player? Because when I simply write the same code as in Asteroid project simple lobby code it doesn't get called...

    • @PhotonEngine
      @PhotonEngine  Před 5 měsíci

      We have plenty of samples showing how to transition from a menu scene into a gameplay scene such as the Asteroids Simple Sample. Player spawning is done via the INetworkRunnerCallbacks which is explained in the video here and also in the Fusion starter tutorial on our websites.

    • @W1LdnKai
      @W1LdnKai Před 5 měsíci

      You ever get this set up and working etc?

    • @mk-3079
      @mk-3079 Před 4 měsíci

      @@W1LdnKai I did. It was one line of code in Arguments when Spawning. That's why I couldn't get even the Debug.Log through

  • @lilboiUK
    @lilboiUK Před 5 měsíci +1

    Haha wish i'd of seen this a few days ago

  • @Pa3BeDka_Gaming
    @Pa3BeDka_Gaming Před 5 měsíci

    I am waiting for the continuation and completion of this topic.

    • @PhotonEngine
      @PhotonEngine  Před 4 měsíci +1

      Thanks for your patience! We've just uploaded the second part: czcams.com/video/rj0DaT8v17A/video.html

  • @diegodrago7801
    @diegodrago7801 Před 5 měsíci

    Does anyone know any good tutorial to implement this but with the Meta Avatars SDK or with ReadyPlayerMe or any other good avatar provider?

  • @hieptranngoc2584
    @hieptranngoc2584 Před 5 měsíci

    we need this, how to get list of players in room and how to invite friend thanks

  • @nnNothing
    @nnNothing Před 4 měsíci +1

    i think, PUN is still Better
    Fusion integration on Unity is like Hell, worse than Unity Networking (NetCode)

  • @hieptranngoc2584
    @hieptranngoc2584 Před 4 měsíci

    where is the tutorial for host seft server for photon fusion and chat thanks

  • @ashdev
    @ashdev Před 6 měsíci

    can you make tutorial on multiplayer vehicles? or converting any existing movements to work in multiplayer.

    • @PhotonEngine
      @PhotonEngine  Před 6 měsíci

      Thank you for the suggestion! We will make more tutorials in the future. In the meantime have you seen our Fusion Karts Sample? assetstore.unity.com/packages/templates/tutorials/karts-multiplayer-photon-fusion-213885
      We also recently had a stream where we did a post mortem on our upcoming Quantum Racing sample. There are a lot of great takeaways for handling vehicles for multiplayer in the stream: czcams.com/video/YdVnrAFGkHE/video.html
      For Circle Members we also have Vehicle samples for Quantum:
      doc.photonengine.com/quantum/current/game-samples/arcade-racing/overview
      doc.photonengine.com/quantum/current/game-samples/keo-vehicular-combat
      doc.photonengine.com/quantum/current/technical-samples/vehicle-physics

    • @ashdev
      @ashdev Před 6 měsíci

      @@PhotonEngine quantum is ecs. Its complex for me. I wanted simple . I also checked battle royal project but the code is very large. Overwhelming 🤕.
      Is there a very basic project that just explains most aspects of fusion?. It will be very nice if you make a tutorial just like this but everything from scratch. Or using any existing non multiplayer controller and make it multiplayer.
      Large code base and complexity is barrier to entry. I have no knowledge about multiplayer at all.
      Any guidance will be very helpful thanks 🙏.

    • @erickpassos
      @erickpassos Před 6 měsíci

      @@ashdev
      >Or using any existing non multiplayer controller and make it multiplayer.
      We don't do this because this is the wrong approach when creating a multiplayer game. If you want to build a multiplayer game right, that plays well and smoothly, you start with multiplayer tech from day one.
      And Vehicle Physics is one of the most complex things to do right in multiplayer. There is no simple solution for "turn my single-player vehicle physics in unity multiplayer" (that plays right/well).

    • @ashdev
      @ashdev Před 6 měsíci

      @@erickpassos ok got it.

  • @DarekB2
    @DarekB2 Před 3 měsíci

    6h looking why if (GetInput(out NetInput input)){} is null.... still nothing.

    • @PhotonEngine
      @PhotonEngine  Před 3 měsíci

      Troubleshooting coding issues is difficult via CZcams comments, so if you're still looking for help resolving this please join the community Discord server (you can find the link in your Photon Dashboard) and post a question there. To make it as easy as possible to help you, please include:
      - The code that's not working as expected. What is it doing or not doing?
      - Any errors you're getting.
      - What you mean by "is null". Are you getting a NullReferenceException on that line, is GetInput always returning false, or does the _input_ never contain your key presses?

  • @user-uc2pf3zt1t
    @user-uc2pf3zt1t Před 4 měsíci

    I downloaded the project and ran it it works fine but when some other person from US try to enter the room they can not , i am from india and my friends from here can join but not from US , Kindly help

    • @PhotonEngine
      @PhotonEngine  Před 4 měsíci

      Are you clicking "quick play"? That will create or join a lobby in the region that is selected in the settings menu (which defaults to "best," aka the closest one to you ping-wise). If you and your American friend both click "quick play" you'll be on different regions and so you'll be put in separate lobbies.
      However, if you create a lobby and send your friend the room code, they should be able to join your lobby via the "party menu" button. Hope that helps!

    • @FarSam25
      @FarSam25 Před měsícem

      ​@@PhotonEngine same problem here and the solution above not working

  • @JadenAllen
    @JadenAllen Před 5 měsíci

    Yoooo its tom

  • @limegeeg
    @limegeeg Před 5 měsíci

    Does it works with Unity WebGL?

  • @RapidRealityRJC
    @RapidRealityRJC Před 4 měsíci

    Invalid token '=>'?

    • @PhotonEngine
      @PhotonEngine  Před 4 měsíci

      Thanks for watching! If you're getting an error and looking for help to solve it, you'll need to provide more context (what is the full error message, which line of code is producing it, etc).
      Double check that you don't have any typos on that line, and consider joining our Discord server as it's much easier to troubleshoot issues there than in the CZcams comments section.

  • @BlackMesaEmployee
    @BlackMesaEmployee Před 6 měsíci +1

    tom weiland w

  • @ogr3dblade6
    @ogr3dblade6 Před 26 dny

    awful tutorial