Unity Photon Pun
Hello, I making 2D mobile platformer game and i moving my player with joystick and using attack,jump buttons but when i want to make this for multiplayer, I could not grasp someone can explain or sending to me some course or videos?
Answer by unity_4XWcnhMEUZ043g · May 02, 2021 at 03:32 PM
Grasping multiplayer is indeed hard. I was learning photon for 2 months, and I still don't know it fully. You should find some free videos on youtube and learn how to make a multiplayer game from scratch.
Things to consider when doing Photon: 1. There are LOBBIES, and there are rooms. 2. The LOBBY can have ROOM and players. 3. ROOMS can have players. 4. Players in the ROOM communicate via RPC's. 5. If you are in the ROOM you are not in the LOBBY. 6.PLAYERS/CLIENTS communicate in ROOM via RPC(Remote Procedure Calls). If some event like(Player A attacked Player B or Player A has Died or Player A has shot a bullet) happen on some CLIENT, he should send RPC to everyone in the ROOM. 7.Watch out on properties like IsMine, amOwner, IsMasterClient, ActorNumber. They might help you to make decisions on how/when/WHO should call RPC.