Multiplayer: syncing variables and sending messages

Discussion and feedback on Construct 2

Post » Thu Mar 27, 2014 5:48 pm

Thanks @jayderyu i finally got it.
Sync Unit variable Count
On new Unit -> Set Unit Instance variable Count to GlobalVariableUnitCount
-> Add 1 to GlobalVariableUnitCount
and then in the message from the peer i send the variable with the action.
On the host side, i compare the variable with the message :D
took me some time to figure out how to make it as efficient as possible, but now it works.
Thank you so much, i hope i can finish the RTS Multiplayer (alpha test) in the end of the week,
ill be glad to give an demo to those who want to see the multiplayer plugin working on an RTS :)
"It's done when it's done"

Shadows of War
Buy on Steam ;)
B
24
S
10
G
7
Posts: 253
Reputation: 4,931

Post » Sun May 25, 2014 6:04 pm

@SgtConti

Hello,

Did you finish that RTS demo with multiplayer?

BR
B
26
S
11
G
2
Posts: 669
Reputation: 5,038

Post » Sun May 25, 2014 6:27 pm

@irina yes, i finally got it to work some weeks ago, but since Node-Webkit is currently not supporting WebRTC i can't ship the demo :/
but there is expected a new NW version in the next 1-2 weeks with WebRTC support.
So if you'll follow this Twitter, i will tweet there when the demo is being published ;)
- Conti
"It's done when it's done"

Shadows of War
Buy on Steam ;)
B
24
S
10
G
7
Posts: 253
Reputation: 4,931

Post » Sun May 25, 2014 6:32 pm

:( i dont use twitter... got facebook page?
B
26
S
11
G
2
Posts: 669
Reputation: 5,038

Post » Sun May 25, 2014 8:13 pm

@Irina yeah sure, this one :)
"It's done when it's done"

Shadows of War
Buy on Steam ;)
B
24
S
10
G
7
Posts: 253
Reputation: 4,931

Previous

Return to Construct 2 General

Who is online

Users browsing this forum: Colludium, Lancifer, Rei TheMartianCat, Yahoo [Bot] and 8 guests