How do I share a usermedia Image in Multiplayer?

Get help using Construct 2

Post » Sat Jun 21, 2014 3:46 pm

Say for a players Icon they take a selfie before entering a multiplayer match. And after entering the match you can see everyone pictures they took with there cameras. How do I get their pictures to show up on other player's screens?
B
7
S
1
Posts: 74
Reputation: 1,368

Post » Sun Jun 22, 2014 11:45 am

The snapshotURL is a data URI, so you can just send that to the other players. You will probably want to use a very low quality JPEG though so there is not too much data to send.
Scirra Founder
B
395
S
231
G
88
Posts: 24,367
Reputation: 193,684

Post » Sun Jun 22, 2014 4:56 pm

Is there a tutorial on how to do this? I can load the image for the players that took the picture, but I am having a hard time sending it. THanks!
B
7
S
1
Posts: 74
Reputation: 1,368

Post » Sun Jun 22, 2014 8:17 pm

You can send it like any other text message. It's just like a chat message that actually contains image data.
Scirra Founder
B
395
S
231
G
88
Posts: 24,367
Reputation: 193,684

Post » Mon Jun 23, 2014 12:55 am

So basically load image from multiplayer.message?
B
7
S
1
Posts: 74
Reputation: 1,368


Return to How do I....?

Who is online

Users browsing this forum: David181, Shenkai the ssj, Yahoo [Bot] and 22 guests