Help, me please [Multiplayer]

Get help using Construct 2

Post » Sat Feb 14, 2015 4:55 pm

SL1ME.capx
I'm using multiplayer and the game works as expected when playing as host, but when the peer plays dying and walking and jumping our glitchy and dying dosen't always work.
You do not have the required permissions to view the files attached to this post.
B
10
S
1
G
1
Posts: 57
Reputation: 828

Post » Mon Feb 16, 2015 11:22 am

Bump
B
10
S
1
G
1
Posts: 57
Reputation: 828

Post » Mon Feb 16, 2015 12:43 pm

Not dying, or wrong player dying: Add a for each to the hosts event sheet for the health check.

ie

for each peer
peer health <=0


Also, you should add some checks whether or not either of the players are allowed to control their elements, who knows, either of them could be dead while they are pressing the buttons :)

Also, I have found that container elements referencing not always work in a multiplayer scenario, so I give everything IDs and use those as references for peers tied objects.


Also, you have an AI calling the destroy, which is processed on peer and host, and only host processes the re-position.
Would be nicer, to have the peer and host process half, peer sent message waiting for re-positioning, wait for a signal from host for replacement ready, then continue to replace the peer and set visible etc.

A bit of ping pong to verify the next action :)
Who dares wins
B
50
S
10
G
10
Posts: 1,728
Reputation: 12,875

Post » Mon Feb 16, 2015 5:28 pm

okay thanks, done it seems to work :D
B
10
S
1
G
1
Posts: 57
Reputation: 828


Return to How do I....?

Who is online

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