This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2013-04-10 17:31:03

jhaig
New Scratcher
Registered: 2012-09-17
Posts: 2

Identify machines in mesh

If I am using a mesh is it possible to identify the machines (eg, by IP address). For example, I would like to have a server-client set up where each client can broadcast a message which the server can react to according to the client. Similarly, I'd like to be able to know which client a variable is from.

Offline

 

#2 2013-04-10 19:53:06

sccar3
Scratcher
Registered: 2008-09-04
Posts: 100+

Re: Identify machines in mesh

The way I'm doing this is I'm having a game that's 4-player, and each project has all variables duplicated 4 times. When you connect it sees who's already connected and gives you a player number. It takes 4x the scripts and 4x the variables, but it works.


http://1.bp.blogspot.com/-WInb2DZ2LBM/UQaLETx3VII/AAAAAAAAAmQ/ZOpSwEPggiE/s1600/The%2BElder%2BScrolls%2BOnline%2BSignup%2BBeta.jpg

Offline

 

#3 2013-04-11 04:41:59

jhaig
New Scratcher
Registered: 2012-09-17
Posts: 2

Re: Identify machines in mesh

Thanks. This is the sort of thing I thought I would have to do but I was hoping that there may be a cleaner way.

Offline

 

Board footer