How do I pin object in multiplayer

Get help using Construct 2

Post » Mon Apr 07, 2014 11:14 pm

i have a problem with multiplayer the thing is that i have a flag with pin behavior, 2 players (a host and a peer), i want that when a player overlaps the flag it pins to him, in the host it works like intended but in the peer it pins to it and duplicate the flag, so in the host view you see one flag pined to the peer, but on the peer view you see two flags pinned to itself.

on the event sheet the flag is set to sync position.
B
19
S
3
G
2
Posts: 82
Reputation: 1,862

Post » Mon Apr 07, 2014 11:18 pm

Why are syncing the flag? Don't. That's just silly,
B
90
S
18
G
9
Posts: 2,455
Reputation: 15,038

Post » Mon Apr 07, 2014 11:45 pm

its needed because the flag will folow the player, if you dont do that it will stay there
B
19
S
3
G
2
Posts: 82
Reputation: 1,862

Post » Tue Apr 08, 2014 3:18 am

that's the point of pin. Just make sure to pin on host and client.

When player X goes over the flag. Both client and host have to have the same logic that triggers the pin. There is no need sync the flag. your making the work harder on yourself.
B
90
S
18
G
9
Posts: 2,455
Reputation: 15,038


Return to How do I....?

Who is online

Users browsing this forum: jezjones24, newt and 23 guests