Alternative To Sync ? (multiplayer)

Get help using Construct 2

Post » Mon Aug 03, 2015 8:06 pm

How Can I make a map loading in multiplayer ?

Example: when a peer join a room all the block of the map is sync and stop to be sync after.

Problem: I can't use "On signalling connected : Sync Block" because the block are sync all the time and i have some performance problem.

Help me plz .. :(
Last edited by Sirvoid on Tue Aug 04, 2015 3:08 pm, edited 5 times in total.
My Twitter:

@Sirvoidd

My Tutorial:

Multiplayer with Photon
B
32
S
12
G
9
Posts: 73
Reputation: 7,079

Post » Tue Aug 04, 2015 7:07 pm

You need to set up the connection first.
Take a look at the templates with the multiplayer templates to set up a working connection.

After that its a matter of choice, either synch all the objects you want with the multiplayer object synch (this can be heavy on the lag if you synch too much) or loop through the objects to be synched once a peer connects, and sent their states (asjson) over to the peer, which catches the messages and sets the objects accordingly (create them if needed)
After the initial synch you could broadcast object states/changes in messages to peers.
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,567


Return to How do I....?

Who is online

Users browsing this forum: ChesVCF, LaDestitute, OBLIVION, Solomon, yiuyiu6666 and 12 guests