How do I hide AimSpot in Multiplayer example?

Get help using Construct 2

Post » Mon Aug 29, 2016 9:13 pm

I made my from from the multiplayer real-time game example, and I can't seem to figure out how to make the AimSpot sprite only visible to the player using it.

I tried syncing the object and doing a "playerID" instance variable to make them player specific but that seems to not do anything at all.
B
27
S
12
G
5
Posts: 79
Reputation: 5,223

Post » Mon Aug 29, 2016 11:37 pm

The AimSpot sprite should not be synced at all I believe. Then each peer will update and see their own, and the host will have a copy of each peer's AimSpot, but the host will not sync each AimSpot to all the other peers.
Mistakes were made.
B
52
S
26
G
110
Posts: 1,623
Reputation: 62,167

Post » Tue Aug 30, 2016 12:23 am

oosyrag wrote:The AimSpot sprite should not be synced at all I believe. Then each peer will update and see their own, and the host will have a copy of each peer's AimSpot, but the host will not sync each AimSpot to all the other peers.

I realize that but how do I make it so that the host/peer only see their AimSpot?
B
27
S
12
G
5
Posts: 79
Reputation: 5,223

Post » Tue Aug 30, 2016 12:55 am

It should be in a container, so when your peer player sprite is created, they get an AimSpot as well.
Mistakes were made.
B
52
S
26
G
110
Posts: 1,623
Reputation: 62,167

Post » Tue Aug 30, 2016 8:50 pm

oosyrag wrote:It should be in a container, so when your peer player sprite is created, they get an AimSpot as well.

I tried removing it from the container, but this made it so that the host can see all of them and only the peer sees their own, and it also makes lazer thing do no damage.

I also tried a sync variable thing and a opacity thing (see the image below) to make it only visible to the peer, but that makes it so that the host sees all aimspots and the peer sees none.
Image

Can you please explain how to make it so that only the peer/host sees their own AimSpot?
B
27
S
12
G
5
Posts: 79
Reputation: 5,223


Return to How do I....?

Who is online

Users browsing this forum: Apollo14 and 27 guests