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

#1 2012-11-25 12:31:20

curiouscrab
Scratcher
Registered: 2012-06-25
Posts: 100+

stop Mesh script

I made this script and when I tried to activate Mesh offline by doing the stuff on the wiki and changing true to false, but nothing happened. The project is Mesh Racing Game. I used the script:
Sprite 1 Car

when gf clicked
point in direction [90 v]
go to x: [-183] y: [-131]
if <(1/2)=[1]>
  set [1/2 v] to [0]
  stop script
end
change [1/2 v] by [1]
wait until <(p2)=[here]>
set [p1 v] to [here]
say [Ready!] for [1] secs
say [Go!] for [1] secs
forever
  if <key [up arrow v] pressed?>
    move [1] steps
  end
  if <key [left arrow v] pressed?>
    turn ccw [1] degrees
  end
  if <key [right arrow v] pressed?>
    turn cw [1] degrees
  end
  if <key [down arrow v] pressed?>
    move [-1] steps
  end
end
Sprite 2 Car

when gf clicked
point in direction [90 v]
go to x: [-185] y: [-162]
if <not<(1/2)=[1]>>
  set [p2 v] to [missing]
  stop script
end
set [p2 v] to [here]
wait until <(p1)=[here]>
say [Ready!] for [1] secs
say [Go!] for [1] secs
forever
  if <key [w v] pressed?>
    move [1] steps
  end
  if <key [d v] pressed?>
    turn cw [1] degrees
  end
  if <key [a v] pressed?>
    turn ccw [1] degrees
  end
  if <key [s v] pressed?>
    move [-1] steps
  end
end
If anyone knows what's going on please help.


http://i50.tinypic.com/dopbtw.png

Offline

 

#2 2012-11-28 16:32:53

joefarebrother
Scratcher
Registered: 2011-04-08
Posts: 1000+

Re: stop Mesh script

You have to shift-click (hold down shift whilst clicking) the share menu (not the button, the menu) and there will be "host mesh" and "join mesh". With host mesh you must get someone on another computer in the same LAN network (so, another computer in your house) to join mesh and type your IP. With join mesh, YOU type the IP to join THEIR mesh they are hosting. Then you can use mesh features such as variable and broadcast sharing.


My latest project is called http://tinyurl.com/d2m8hne! It has http://tinyurl.com/d395ygk views, http://tinyurl.com/cnasmt7 love-its, and http://tinyurl.com/bwjy8xs comments.
http://tinyurl.com/756anbk   http://tinyurl.com/iplaychess

Offline

 

Board footer