Code Access: Tutorial: Online multiplayer π« FPS Unity & Photon Fusion EP2 (camera + jumping + respawn)
🕑 Added 2022-05-17 19:15:56 +0000 UTCThe 2nd episode is now available on YouTube
In this episode we'll go through how to handle a FPS camera which is not connected physically to the player. We'll also ensure that it will only render the remote players and not the local players body parts. The input will also be improved with some additional stuff like respawning the player if they fall off the edge of the world.
PS the code has now been updated to work with Photon Fusion 1.1
Download the the source code for the Unity project below π
Comments
GergΕ Petrovszky
Hello! I have an issue where I've set the layer mask for localPlayerModel in the visualization, but then the players can't see each other. Why could this be happening? could you help me? Update i found the problem. The visual layermask setup in the prefab not in code.
Fredrik Kellermann
I will do that for sure! First up is health that will be used when shooting but later on player names etc will be added.
Bret Curan
Will you cover how to loading external variables so all networked players can see it in future videos? e.g. string for a players name.