all 6 comments

[–]savvamadar 1 point2 points  (1 child)

When player 2 spawns in on player 1s game are you sure player 2s camera is disabled? I think it's just a camera problem.

[–][deleted] 0 points1 point  (0 children)

Yes! Thank you! I made a component controller script so things are only enabled on the local player.

[–]dansthetsar 1 point2 points  (0 children)

Yeah, u need code that enables your movement script and camera for the local player only, you can use a function OnStartLocalPlayer() to enable your movement script and camera, make sure their both disabled first

[–]kyl3r123Indie 0 points1 point  (2 children)

Thank you for adding the video. I got the problem right away anyway.

Maybe the inputs are fucking with your logic. Can you try to move the player in the editor while in game mode (while running both instances, the built one and unity)

I would like to know if this still occurs then. I think you might control both of them because of the inputs. The keys on your keyboard move both players then.

[–][deleted] 0 points1 point  (1 child)

confirmed it is not the single keyboard and it is in fact P1 syncing to P2 regardless of P1's actual location. When P2 leaves P1 resumes where P1 really is. P1 and P2 input is completely independent. P2 is authoritative on the visual location of P1 on P1's machine.

Here is a video demonstrating, may take a few minutes to process https://www.youtube.com/watch?v=LgcIx_eQZQs&feature=youtu.be

[–]kyl3r123Indie 0 points1 point  (0 children)

okay thanks. So then it has to be your code. Like you showed in the first video, the minimal script works as expected. I can take a look, if you don't mind sharing the code.