Questions tagged [photon]

Photon is a realtime multiplayer cross-platform api from Exit Games.

Photon is a realtime multiplayer cross-platform api from Exit Games. It provides it's services in two forms. You can either choose to have it's fully managed Cloud service or can implement your own Server via it's Photon-Server api.

Links:-
Photon SDK

664 questions
0
votes
1 answer

Photon Server Register Custom Types

In the Photon Server examples for registering custom types , it says to use a function called Protocol.TryRegisterCustomType(...) but I am not sure if it exits since I cannot use it in code (I am using the free version of Photon Server SDK)... It…
lambda
  • 1,225
  • 2
  • 14
  • 40
0
votes
1 answer

Photon Cloud Offline Mode Can't find Spawn Points

I'm following user: quill18creates on youtube multiplayer FPS tutorial. https://www.youtube.com/watch?v=CnKc9k6shQA I'm having a problem when setting the offline mode to true. When I try to run my application, I get the Debug.Log("No spawn…
Paul
  • 120
  • 10
0
votes
1 answer

How to sent a sychronize a script over photon unity network

I have a multiplayer game which uses a flashlight, and if I press L the flashlight turns off on the other game as well, but when batteryTimeLeft reaches 20 it only flickers on the local game. How do I sync this whole script with all the users so…
V3n0mou5
  • 3
  • 2
0
votes
1 answer

How to target all other players other than yourself?

In my game a player can fire a weapon which will launch a projectile that automatically targets the enemy who is closest to a certain object. However, how can I stop the projectile from also targeting my own player? Is there any way to tag all other…
Letsgo66
  • 11
  • 2
0
votes
1 answer

How to run OnPhotonPlayerConnected twice?

In my script, I assign a spawn point to a player when they join the game, with this: public void OnPhotonPlayerConnected(PhotonPlayer newPlayer) { spawnpoint = GameObject.Find("spawnpoint2"); } However, this will assign spawnpoint2 to the…
ziggy
  • 31
  • 1
  • 4
0
votes
3 answers

Photon detecting if a player is already in that spawn position

I have 3 players in a room, and 3 set spawn positions, but would like each player to be spawned in one of these positions and not on the same position. I've got this, but how can I make sure that another player won't also spawn in this…
ziggy
  • 31
  • 1
  • 4
0
votes
2 answers

Photon creates a new room for each player

I have written my Photon script so that the player joins a random room, and if no room is found, the player will automatically create a new room. However, when I build and run my game on two different computers, no room is found on both of them, so…
zigg76
  • 55
  • 1
  • 7
0
votes
1 answer

Parenting over network

I am working on a co-op game using photon unity, I am using parenting to move my object with respect to other, when I am setting my object parents to null one more copy is being created and being left on its parent object or you can say perviously…
0
votes
0 answers

Unity Collision Doesn't work when two Players instantiated

I am using Unity3D and I have a problem. I have a script which instantiates the player gameobject once you are connected to the server. I also have an attack script. When there is only 1 player on, everything works fine. When the second player comes…
geotsak
  • 107
  • 1
  • 10
0
votes
1 answer

Photon Multiplayer, Both players create their own rooms

I am using Photon with cocos2dx for making a multiplayer game. When I create room from one player, it creates room successfully and after 4 or 5 seconds when I join room from other player then both player join each other successfully and game…
0
votes
3 answers

Photon Unity GetRoomList() is always empty

Currently I'm trying to make a matchmakingsystem for my game with the photon networkingsystem. I already can create rooms and join into them, however if I try to use the PhotonNetwork.getRoomList() function the array is always empty. Following the…
Mineorbit
  • 3
  • 1
  • 3
0
votes
2 answers

Unity Photon Multiplayer Networking Turnbased game

How to make Multiplayer Turnbased game in unity Photon Networking like Tic Tac Toe.How to assign Controls on runtime through Photon Network.Is it done by change the ownershipp o game object?
EdwardMaya
  • 11
  • 1
  • 3
0
votes
3 answers

How to get facebook friends using playfab?

i have been trying to access the facebook friendlists of the facebook test users through playfab. am using this code public void FriendLists(){ GetFriendsListRequest request = new GetFriendsListRequest (); request.IncludeFacebookFriends =…
jibrangillani11
  • 61
  • 3
  • 10
0
votes
1 answer

Unity3D: PhotonNetwork.GetRoomList() cannot get any RoomInfo

I am trying to create a room UI. I built a copy to test if I can see any room. However, it does not received any room. Here is my code: public class NetworkManager : Photon.MonoBehaviour { public GameObject ScrollViewContent; public…
Joshua
  • 5,901
  • 2
  • 32
  • 52
0
votes
1 answer

SendInstantiate Photon networking

How can i NetworkingPeer.SendInstantiate to 1 person (send resource loads only to 1 person) Unity - Photon servers if (this.inputLine.StartsWith("/flash")) { int player = Convert.ToInt32(this.inputLine.Remove(0, 7)); object[] array = new…
Pat
  • 21
  • 7