How do I sync variables in Photon

Get help using Construct 2

Post » Sat Dec 16, 2017 9:40 pm

So I am playing around with Photon and i'm trying to sync up movement & attack animations which use global variables yet I have no idea where to begin since there is no actual documentation on photon/c2 and the demos don't help at all. Anyone know where I can start rofl ?
B
89
S
43
G
25
Posts: 91
Reputation: 19,602

Post » Mon Dec 18, 2017 3:54 pm

What you could do is, instead of using global variables, use Photon's property of actor. It is synced between all players in the room automatically.
B
32
S
15
G
6
Posts: 166
Reputation: 5,960

Post » Mon Dec 18, 2017 4:35 pm

Lasmelan wrote:What you could do is, instead of using global variables, use Photon's property of actor. It is synced between all players in the room automatically.


Thanks for the reply!
Well I did stumble onto that yesterday lol. but my issue is now since I have the players angle set to the mouse I can't seem to get it across to every other player. I have no idea how to sync that up xD

PS. I am trying to learn by doing :3
B
89
S
43
G
25
Posts: 91
Reputation: 19,602


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 27 guests