[Multiplayer] How do I get the ID of a peer from its alias ?

Get help using Construct 2

Post » Wed Nov 11, 2015 10:24 pm

Hi guys

I'm currently following the tutorial : "Multiplayer tutorial 2: chat room"
At the end, a challenge would be :
If you feel like a challenge, try coming up with a way to private message individual peers in the chat room. In IRC this is done with a special chat message command starting with a slash, such as: /pm SomeUser hello!
In this case the host would need to relay the private message as well, but by Send message instead of Broadcast message so it is only received by the intended recipient. You wouldn't want to broadcast private messages to everyone!


But if we use /pm user, host will need to find the peer ID linked to that alias in order to use the Send Message action, right ?
How can we do this ?
B
6
S
1
Posts: 45
Reputation: 509

Post » Thu Nov 12, 2015 9:53 am

Or another way to handle private message in chat tutorial ?
B
6
S
1
Posts: 45
Reputation: 509


Return to How do I....?

Who is online

Users browsing this forum: jorgmaquoi, luckyrawatlucky, Rable, senecaa and 14 guests