How do I Create different characters in the Photon?

Get help using Construct 2

Post » Thu Jul 21, 2016 3:33 am

I'm trying to figure out the Photon cloud plugin and I don't know how to create a different character for each person that logs in. Thank you.
B
36
S
9
G
6
Posts: 18
Reputation: 5,249

Post » Thu Jul 21, 2016 5:41 am

Hello,
Can you explain more ? You want unique ID for each user ?
B
17
S
10
G
19
Posts: 140
Reputation: 11,457

Post » Thu Jul 21, 2016 11:30 am

On actor join room
-> Create Playersprite
-> Set a 'Playersprite.variable' to Photon.ActorNr (Now each character have the Photon ActorNr)
-> If Photon.ActorNr = Photon.MyActorNr -> Set a Boolean instancevariable 'Local' to: True (Set's your character to Local)

You character will have the Local Boolean, other characters will have Photon.ActorNr as variable.

Hope that helps.
Follow my progress on Twitter
or in this thread Archer Devlog
B
35
S
15
G
17
Posts: 944
Reputation: 12,210

Post » Fri Jul 22, 2016 12:15 am

Each character that joins, can pick who they want to be. Instead of everyone being the same character.
B
36
S
9
G
6
Posts: 18
Reputation: 5,249


Return to How do I....?

Who is online

Users browsing this forum: Apollo14, ivanski1983, KTML5 and 4 guests