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

#1 2009-07-30 17:08:36

juststickman
Scratcher
Registered: 2009-05-31
Posts: 1000+

A block

It would be helpful to have a
<color [color] is touching [spritename]>
Please try to make that happen.


http://is.gd/iBQi2 Add grob to your sig and help with world dominiation!http://is.gd/iBQ9Q                                                             Hey guys, we're seriously naming our team bob?

Offline

 

#2 2009-07-30 17:18:57

BWOG
Scratcher
Registered: 2008-09-19
Posts: 1000+

Re: A block

<touching color[

Put that block on the sprite that would touch that color

Offline

 

#3 2009-07-30 17:22:40

bhz
Scratcher
Registered: 2008-07-06
Posts: 100+

Re: A block

Scripts in target sprite:
when flag clicked
forever
     if < touching color [ ] >
          set [ touch ] to [ 1 ]
     else
          set [ touch ] to [ 0 ]
     end
end

your block is then:
< ( touch ) = [ 1 ] >

Offline

 

Board footer