NokiMo
Pretty Fly Games
Pretty Fly Games

patreon


Code Access: Tutorial: Online multiplayer 🔫 FPS Unity & Photon Fusion EP2 (camera + jumping + respawn)

The 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 👇

Code Access: Tutorial: Online multiplayer 🔫 FPS Unity & Photon Fusion EP2 (camera + jumping + respawn)

Comments

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.

Gergő Petrovszky

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.

Fredrik Kellermann

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.

Bret Curan


Related Creators