Scenen Load Level Photon

Options
Hello, I urgently need your help
I need a code for scenes Load must trigger the man with a trigger

I did it with
function OnTriggerEnter(){

Application.LoadLevel ("Scene");

}

attempted, but is not there comes the beiraus

1379396_676178542443513_763864014_n.jpg

Comments

  • Tobias
    Options
    I'm not sure what the problem is.
    You can set PhotonNetwork.automaticallySyncScene = true and then use PhotonNetwork.LoadLevel on the Master Client. The others should load the same level then.
  • HellconX
    Options
    Thanks it worked :D
  • HellconX
    Options
    How can you set the isMasterClient to false, so that each player on isMasterClient = false Plays

    No one should be master!
    :?
  • Tobias
    Options
    You can't. One client simply becomes master.
    What do you want all players to do?
  • ajay262
    Options

    @Tobias i tried this and this is my code

    void Start(){

        PhotonNetwork.AutomaticallySyncScene = false;

    }

    void OnTriggerEnter2D(Collider2D other)

    {

        if (PhotonNetwork.IsMasterClient)

        {

            PhotonNetwork.LoadLevel("Scene2");

        }


    player is being spawned into scene2 but is also being mirrored into scene 1 how do i fix this

  • Tobias
    Options

    PhotonNetwork.AutomaticallySyncScene = true;