awsome tutorial! my test mesh project was a just two movable cats. each computer controlled 1. it was quite easy, all i had to do was
1. make two cats on both computer screens(one red and one blue).
2.make the red one operated by one computer and the blue one on the other.
3. when i made the moving scripts i made it brodcast a certain message when one moves( ex: when right arrow key pressed, point in direction 90,move 10 steps,brodcast red cat right).
4.made it when messages are brodcasted by one computer the other computer does the same thing with the red cat on its screen(ex. when i recieve red cat right, point in direction 90,move 10 steps).
5. host mesh with one computer and join with another by using the ip adress.
[blocks]<when[right arrow]key pressed>
<repeat until><< <not> >><key[right arrow]pressed?>
<point in direction(90
<move(10)steps>
<broadcast[red cat right[/blocks]
Offline
Jonathanpb wrote:
You right-click on the white area that appears when you Shift-click the R
And sorry for the late reply, I should really check Advanced Topics more often ^^
hi! i got stuck when i right-click in the white area, i can't mesh my scratch, help!
Last edited by familyliao (2011-12-29 01:14:21)
Offline
For quite a while Ive been trying to figure out how to make an advanced Mesh Shooter game. There are 2 programs, a 'master' and a 'slave.' Later I will condense theses into one, as I do know how to. The master moves using the player controls, and on the other computer, as the other player moves their charrie, instead of brodcasting back to the master to move their sprite, it brodcasts it's coordinates. This prevents the master player from cheating, but there's one problem: This method creates some lag. On it's own, it doesn't matter, but I use a pen-based bullet, which means there's almost a half of a second shot delay. This means that a lot of hits players make will not register, stretching out firefights and generally getting everyone mad. Running in turbo gets rid of most of the pen shot delay, but there's still the lag from the coordinate system, and since the master registers the hits, not the slave, this means the master can aim where the slave is on HIS screen and register hits, even if the other player is by now out of range. I really need help with this. Any suggestions?
Offline
<clear>
Offline
Was that supposed to help?
Offline
what happens if you are connected to 2 projects in mesh and they both have a global variable with the same name?
Offline
bump
Offline
You should probably update the part where it's "only for local networks". Cause that was never true, you have to port-forward to get it on the internet. But Hamachi is a good alternative.
Offline
I know what to do: Get my dad to make a site where I can set up a mesh network for scratchers to join It's a good idea, since it wouldn't need stuff like Hamachi (mind you, which I have)
Offline
joefarebrother wrote:
what happens if you are connected to 2 projects in mesh and they both have a global variable with the same name?
Yours will report the most recently updated.
Offline
Im trying to get Mesh back after reinstalling scratch and it isnt working. i got 1 window hosting mesh, then opened another and it said "Remote Sensor Connections Enabled" And I cant join mesh in the second window.
Offline
Help?
Offline
bump
Offline
trekkie2000 wrote:
Im trying to get Mesh back after reinstalling scratch and it isnt working. i got 1 window hosting mesh, then opened another and it said "Remote Sensor Connections Enabled" And I cant join mesh in the second window.
did you try shift-clicking share and, when prompted what IP to join, enter 127.0.0.1 or localhost?
Offline
When I clicked accept it wouldn't accept my initials, so it had me choose something from a list and gave me an error message and now when I shift click share I get a red error message box. The title of it is Message Not Understood: txt. What is this?
Offline
Noah1991 wrote:
Hi, I'm using Ubuntu Linux 9.04 and every time I try to save after activating Mesh it freezes and I have to force quit Scratch! Any ideas?
Try Windows or Panther(scratch mod) perhaps?
Offline
SJRCS_011 wrote:
trekkie2000 wrote:
Im trying to get Mesh back after reinstalling scratch and it isnt working. i got 1 window hosting mesh, then opened another and it said "Remote Sensor Connections Enabled" And I cant join mesh in the second window.
did you try shift-clicking share and, when prompted what IP to join, enter 127.0.0.1 or localhost?
What is 127.0.0.1? My IP is 192.168.1.90
Offline
trekkie2000 wrote:
SJRCS_011 wrote:
trekkie2000 wrote:
Im trying to get Mesh back after reinstalling scratch and it isnt working. i got 1 window hosting mesh, then opened another and it said "Remote Sensor Connections Enabled" And I cant join mesh in the second window.
did you try shift-clicking share and, when prompted what IP to join, enter 127.0.0.1 or localhost?
What is 127.0.0.1? My IP is 192.168.1.90
127.0.0.1 = localhost = The computer you are currently on
Offline