Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: jake9 on February 28, 2015, 10:07:24 AM
-
I'm trying to setup a photon playmaker test scene, but I can't figure out how to instantiate the player. I'm using the action "photon network connect using settings" on a gameobject called "connecter". Then on a gameobject called "spawn point" I start with the action "Photon network get is connected" and on "is connected event" I transition to a state called "spawn player" where I use the "photon network instantiate" action to instantiate the cube player at the "spawn point" gameobject location. For some reason the player won't show up in the hierarchy or game window. I even have a static camera facing the "spawn point" gameobject to see if the player spawns and it's not showing the player when I hit play. Does anyone know what I could be doing differently to spawn the player?
-
Hi,
Your first stop is to download the playmaker photon sample:
http://www.hutonggames.com/samples.php
then you should read the related wiki documentation:
https://hutonggames.fogbugz.com/?W928
it will explain the process of connecting, creating game, synchronizing data, etc
basically, you will be listening to a new set of global event specificall made for Photon, https://hutonggames.fogbugz.com/default.asp?W929
so your fsm will have a global transition set to when the game is connected, when the player is in the lobby, which only then that you can join or create a room, which is then when you can instantiate your player.
so there are a lot of concept to digest before instantiating a player ( you have to be in a room).
Bye,
Jean