playMaker

Author Topic: Photon Instantiation Help  (Read 1156 times)

andyandyandy

  • Beta Group
  • Junior Playmaker
  • *
  • Posts: 63
Photon Instantiation Help
« on: August 25, 2020, 05:15:49 AM »
Could someone explain to me how to spawn another player...I can spawn one player but not sure what I need to do after another person joins the game. Do I need to create another ID or something for the second player to Instantiate? Am I suppose to not use the same prefab to do Instantiation? @__@ I'm confuse..

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15620
  • Official Playmaker Support
Re: Photon Instantiation Help
« Reply #1 on: August 27, 2020, 02:19:10 AM »
Hi,

Spawning a player is done per machine/device. When do that, photon will also spawn a remote instance of that player on other machines connected to the same room.

so bascially, when you join a room, you instantiate a photon prefab, and that's you in the game. then any device you run and join that same room, you will end up seeing each others in that room 3d world.

Bye,

 Jean