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

#1 2012-11-26 12:43:03

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

Mesh Help Needed

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-26 13:25:07

DigiTechs
Scratcher
Registered: 2011-04-30
Posts: 500+

Re: Mesh Help Needed

When you Shift click the Share menu, do you get the Host mesh/Join mesh buttons?


I'm back.
Maybe.

Offline

 

Board footer