How to synchronize other entities in Photon Multiplayer

The project link will be at the bottom of this post.

How do I synchronise other entities in this project such as the gun and the bullet?

Could anyone give me code for this and tell me how to generally synchronise anything?
By the way, when I mean synchronise, I mean showing entities on other screens and making them move in real time.

Project Link: https://playcanvas.com/editor/scene/2114503

Hi @VisionsKlips!

I didn’t make a real multiplayer myself yet, but I guess it will be the same as you already do for the other players movements. So you need to send the positions of the entities to the server and the other players.

This can be expensive if there are many entities you need to do this for, so you need to find a way to minimize the amount of time you have to do this. For example, I don’t think it’s a good idea to send the exact location of each bullet.

I hope someone with more multiplayer experience can share some tips and tricks.

1 Like

I will try your method @Albertos

Now it is bugging. Could you please message me if you find a person experienced with Photon in PlayCanvas?

Can you tell me your current approach? How many and what kind of game objects do you have?

Just basic multiplayer fps. Players can move around and shoot enemies with a re-spawn function. A player(already applied multiplayer to this) which can move around. A gun which can only move around when the player moves. A bullet that comes out of the gun which can only move around when the player clicks the left mouse button.

Also, I’ve found a person on the forums who is @Ryotaro.TSUDA but he doesn’t seem to be online recently.

What is your approach? When does this happen or what did you change?