How do I make the peer update a global variable?

Get help using Construct 2

Post » Tue May 19, 2015 8:35 am

I know the host broadcasts the "message" ( Global Variable) to the peer, but say, how would I have the peer update the Host with his global variable?

i.e., On clicked, add 1 to Rematch(Global Variable). If Rematch is = 2, then do stuff.

Currently I cant wrap my head around where to broadcast the "rematch" message. Each side just puts there own Global Variable to 1, rather then syncing.
I have searched forums/google, and looked through the multiplayer tutorials, yet I still cant find anyway for the peer to add his value to the variable and sync it with the host. Any help is greatly appreciated, thank you!
B
8
S
1
Posts: 28
Reputation: 906

Return to How do I....?

Who is online

Users browsing this forum: Armench, brunopalermo, dand, TRMG and 25 guests