- Home /
Photon Networking - Synchronization problem
Hi. I develop online soccer shooting game with with using Photon Network. Two players, will be goalkeepers respectively and will shoot each other. For example: Player A: Shooter Player B: Goalkeeper
Players will change after player A shot the ball. So it will be like this: Player A: Goalkeeper Player B: Shooter
The goalkeeper and the shooter objects are already on stage and attached PhotonView component(I do not instantiate later these objects). At first; Player who created the room is shooter and other player is goalkepper. The problem starts here.
Local players can move their own objects(goalkeeper and shooter object) but there is a problem on global.The first player(Shooter) is can do it moving the Shooter object on local but other player sees the shooter object still(stationary). But second player(goalkeeper) when move the goalkeeper, The first player can see it. So, the first player's movements are not synchronized. There is no problem in the second player. When I look at the photonview component of the Shooter object from the editor, I saw "Owner" value is "scene" in the local and global(Same object ama in the other player game). I think this is the problem. Because when I look at the photonview component of the goalkeeper object, I saw the owner is other player photon player name..
Sometimes this is the exact opposite(no problem in the first player but the second player has problem).
Could you help me? Thanks Note: I am using Unity3D Game engine (Sorry for my bad english)
Answer by Blade38 · Jul 18, 2017 at 06:17 PM
I think you should do OnPhotonSerializeView for the ball position and player's transform position my friend . What do you do for synchronization PhotonTransformView ?
Your answer
Follow this Question
Related Questions
Photon wont sync for the masterclient. 1 Answer
Question regarding unity mobile multiplayer game 0 Answers
Unity / Photon Networking Question 0 Answers
Photon error nentworking 0 Answers
Switching weapons in PhotonNetwork 1 Answer