Unity Individual Cameras - Steam Multiplayer Game in Unity

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

Komentáře • 36

  • @Asky_
    @Asky_ Před 2 lety +19

    one of the best tutorials around. would be nice if you made one with unity netcode

    • @karmaa1036
      @karmaa1036 Před rokem +4

      Modify the "OnStartAuthority" method to the following
      public override void OnNetworkSpawn() { // This is basically a Start method
      cameraHolder.SetActive(IsOwner);
      base.OnNetworkSpawn(); // Not sure if this is needed though, but good to have it.
      }

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

      I have been having this problem for days! thank you so much!@@karmaa1036

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

    if i have 2 player, camera in scene have 3 (main, cam_player1, cam_player2) it make view of each player can't move anymore. What should i do, if just 1 player it run perfectly

  • @kyroic6128
    @kyroic6128 Před rokem

    thanksss, i ve been having this issue for a long time and couldnt find solution anywhere. I adjusted your way for photon network and it worked.

  • @melihkorkmaz6106
    @melihkorkmaz6106 Před 2 lety +1

    thx for the tutorial. congrats for your new job :)

  • @GabrielFerreira-ot8cg
    @GabrielFerreira-ot8cg Před 2 lety +1

    Great tutorial, thank you :)

  • @bananastudiotheprogramer
    @bananastudiotheprogramer Před 2 lety +1

    Nice tutorial keep it up!

  • @TNCGamer
    @TNCGamer Před 11 měsíci

    it works but when another person joins the game my camera rotation doesn't turn with the player anymore..and when he leaves it starts working again

  • @aimojorma7674
    @aimojorma7674 Před 11 měsíci

    Nice tutorial, but you forgot to add this and the next tutorial to your steam multiplayer playlist :)

  • @ee500ee
    @ee500ee Před 2 lety

    thanks, you made it very simple 😃

  • @davidherzog6023
    @davidherzog6023 Před rokem +1

    Cool😊

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

    Nice tutorial :)
    I'm still wondering how to make the camera's rotation work, so like make the player move in the direction the camera is facing at (transform.right?).

  • @studio_gimbap
    @studio_gimbap Před 9 měsíci

    thanks!!

  • @nunya_bysnes0014
    @nunya_bysnes0014 Před 2 lety

    Nice job

  • @sggsgsggsrr
    @sggsgsggsrr Před 2 lety

    Finally

  • @ViggeGee
    @ViggeGee Před 9 měsíci

    Everything works except that the client cant see the host player. The host player can however see the client player

  • @halo123proplem
    @halo123proplem Před 2 lety

    Is there a reason you assign the position every frame even though the camera is a child object of the player?

    • @ZygerGFX
      @ZygerGFX  Před 2 lety +1

      Because the position isn't exactly the parent position there is an offset that gets added so we need to update it. Also if your wanting the camera to lerp you'd need to do this

    • @halo123proplem
      @halo123proplem Před 2 lety

      @@ZygerGFX that's logical, so you could also just assign the offset to the local position of the cameraholder.
      but does the cameracontroller have to be on the playerobject? It seems counter intuitive to have all the components on the same object

    • @ZygerGFX
      @ZygerGFX  Před 2 lety +1

      @@halo123proplem No it doesn't have to. in fact in my own little project it isn't. I made it on the same object here for simplicity's sake. If I had it not be parented then there would be a little more work to do, and since a lot of beginner people follow these tutorials I opted to not go that route. By all means if you are seriously trying to make a game that you're planning on releasing then I would recommend using a different system since I agree with what you said of it being counter intuitive, but most people don't which is why I did it that way in this tutorial.

    • @halo123proplem
      @halo123proplem Před 2 lety

      ​@@ZygerGFX Thank you for the clarification and thank you for these tutorials. I would love to see a network tutorial for how the players interact with objects in the scene, f.x picking up a box or kicking a box.
      do you have anything like that planned?

    • @ZygerGFX
      @ZygerGFX  Před 2 lety +1

      @@halo123proplem I haven't got anything planned like that though its a good idea. I will probably at some point do something similar though don't know how long it will be till then.

  • @ggng_leo6227
    @ggng_leo6227 Před 2 lety +1

    nice tutorial now though can you put that you can move the view? thanks

    • @ZygerGFX
      @ZygerGFX  Před 2 lety

      Could you explain what you mean ?

    • @ggng_leo6227
      @ggng_leo6227 Před 2 lety

      ​@@ZygerGFX that you can turn and move the visual

  • @coolorphans
    @coolorphans Před rokem

    thanks babe as always

  • @birdboy4774
    @birdboy4774 Před 2 lety

    Can you do another version with cinemachine?

  • @emptybruh
    @emptybruh Před rokem

    Does this use Untiy Network Gameobjects alongside Mirror?

    • @ZygerGFX
      @ZygerGFX  Před rokem

      no its mirror and steamworks

  • @samuelhedrick356
    @samuelhedrick356 Před 2 lety +1

    Or just get if not local player then deactivate camera

    • @ZygerGFX
      @ZygerGFX  Před 2 lety

      Yeah its the same thing just the opposite way around. But also can be used :))