How do I Multiplayer and Line of Sight.

Get help using Construct 2

Post » Mon Oct 05, 2015 5:05 am

Hi, I am trying to make it so that a peerA can only see peerB if peerB is in the line of sight in front of peerA and invisible if peerB is not in the cone of line of sight of peerA.
I have it kinda working but peerB becomes visible to all peers, not just the peer that spotted him.
Here is a pic of how I currently have it setup. Opacity is currently 30 for testing, it will be 0 when finished.
Image
Some help would be greatly appreciated. Thanks
B
6
S
1
Posts: 10
Reputation: 429

Post » Mon Oct 05, 2015 11:28 am

I think that is because all peers have the action being fired. (event 61)

How about adding: Peer.peerid = multiplayer.MyID to event 61 ?
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,572

Post » Tue Oct 06, 2015 1:37 am

lennaert wrote:I think that is because all peers have the action being fired. (event 61)

How about adding: Peer.peerid = multiplayer.MyID to event 61 ?

No that didnt seem to do it.
B
6
S
1
Posts: 10
Reputation: 429

Post » Tue Oct 06, 2015 10:36 am

If you post a capx I will do some tests.
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,572


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo and 31 guests