Sync the position of a ball in the game.
Options
Hello everyone,
I started using Photon to make my game multiplayer, and it's my first time doing something network related.
I followed a few tutorials and I found how to synchronize my players, which worked fine, using .Lerp()
But now I have a problem, my game is simple : Players pick up a ball and throw it at each other. But I don't know how to synchronize the ball for every players.
a PhotonView observing the transform of the ball makes the ball very laggy, and I can't use the same script as I did for my players.
Can anyone help me ? I simply want everyone to see the same ball, smoothly, since they have to throw it at each other.
I started using Photon to make my game multiplayer, and it's my first time doing something network related.
I followed a few tutorials and I found how to synchronize my players, which worked fine, using .Lerp()
But now I have a problem, my game is simple : Players pick up a ball and throw it at each other. But I don't know how to synchronize the ball for every players.
a PhotonView observing the transform of the ball makes the ball very laggy, and I can't use the same script as I did for my players.
Can anyone help me ? I simply want everyone to see the same ball, smoothly, since they have to throw it at each other.
0
Comments
-
Hi,
Your ball needs to be a Scene Object, that no player owns, but actually owned by the MasterClient.
Or, you can switch owners, so that the player that catches the ball requests ownership.
Bye,
Jean0