All game mechanics are ready, now I am trying to embed it for the multiplayer gameplay. But I am having some issues with synchronization over network. I am using Photon Cloud and bought PUN+ to achieve multiplayer.
To briefly mention, 2 bubble head characters are playing as rivals with one ball, characters are jumping and moving around to make the ball embrace the opponent's net.
Problems I am facing with are:
1. Ball cant be synced properly
2. Ball object can be controlled and shot by MasterClient easily (because he creates it) while other client can not. (I already tried sending an RPC but it lags much and because this game must have a fast gameplay it doesnt meet my requirements) When I try to move with the ball with nonMasterClient, ball is passed through then it appears in front again. (I cant figure out how to visualize or sync it)
3. I tried to transfer ownership, I measured the distance between characters and the ball, I transferred the ball's ownership to the closer one, but it just transports the ball and make the ball move insanely for a second. I couldnt handle it properly.
I am sure you guys already grasped what issues I am dealing with here. Some friends adviced hosting my own server, but I dont want to deal with writing API's and Physic behaviours.
Just showing a path or mentioning an approach can be very helpful for me.
Thanks.
To briefly mention, 2 bubble head characters are playing as rivals with one ball, characters are jumping and moving around to make the ball embrace the opponent's net.
Problems I am facing with are:
1. Ball cant be synced properly
2. Ball object can be controlled and shot by MasterClient easily (because he creates it) while other client can not. (I already tried sending an RPC but it lags much and because this game must have a fast gameplay it doesnt meet my requirements) When I try to move with the ball with nonMasterClient, ball is passed through then it appears in front again. (I cant figure out how to visualize or sync it)
3. I tried to transfer ownership, I measured the distance between characters and the ball, I transferred the ball's ownership to the closer one, but it just transports the ball and make the ball move insanely for a second. I couldnt handle it properly.
I am sure you guys already grasped what issues I am dealing with here. Some friends adviced hosting my own server, but I dont want to deal with writing API's and Physic behaviours.
Just showing a path or mentioning an approach can be very helpful for me.
Thanks.