RT

Get help using Construct 2

Post » Thu Jun 12, 2014 11:11 pm

RT
Last edited by CarHazy on Sun Jun 14, 2015 2:54 am, edited 1 time in total.
B
20
S
7
G
5
Posts: 24
Reputation: 4,505

Post » Fri Jun 13, 2014 12:15 am

I call functions cross device and pass parameters. Every peer receives the function call but based on the param's only the one i want will do any thing with it.

The easiest way to do this is to create dictionary, add the key,values (forPeerId,fnNameToCall,param1,param2,etc..). Send it as JSON to peers. Multiplayer Tag "SyncFunction". The peers receive it and anything received under the "SyncFunction" loads the string back into a dictionary on there end and then based on the keys in dictionary act on the data that it received. That's about as flexible control as you'll get and its really easy to do once you get your functions in place.
B
20
S
7
G
1
Posts: 221
Reputation: 2,077


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 22 guests