This is the multiplayer FPS game prototype that I have been troubleshooting for a few days. I am essentially replacing the original third-person point-and-click gameplay with a first-person movement system. FPS movement code is “borrowed” from the “First Person Shooter Starter Kit” demo project. Everything else followed the Photon Multiplayer Tutorial by the book.
The problem is that a player creates a server, and can move around and stuff without a problem and decent fps. (Running mainly on a Samsung Chromebook 3)
When a second player or instance joins that room, the new instance shows the first as directly next to it no matter where the first instance actually is.
For the first instance, the second one joins as expected. In both instances, the players end up moving each other whenever they move.
They are also both colored blue as if they are both being considered the main player on each other’s screens.
I assumed it was an issue with the template attached to the root, so I updated it with no change.
I tried running them on separate computers instead of different tabs. The problem appears the same as before.
I tried making a backup titled “Trying Again” and tried a different, slightly more convincing approach that more resembles the original Photon Multiplayer project. It worked worse than the first.
In a very old project of mine, I had a similar issue, which I eventually fixed. However, I do not believe that it would work for this, for it used the old multiplayer system tutorial which makes use of a second player asset that acts as a dummy or actor. The Photon multiplayer does not make use of this.
Here are a few screenshots that might be helpful.
The first instance joined and moved next to the box with no problem(above)
The second instance joined, but the first instance appears to be right next to the second, and it is also colored as if it is the main player (also above)
(in the POV of the first instance again) the first instance is in the place in which the second one joined in, and the second one appears where the first was. Nobody has moved since the second one joined in. the POV of the second one appears the same as it was in screenshot #2 at this point.
link to the “Trying Again” project
original prototype (titled Switch-A-Roo)
Any help is appreciated.
Thank you for your time.