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.
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.
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.