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

#1 2010-06-01 04:53:38

calebxy
Scratcher
Registered: 2009-12-31
Posts: 1000+

A very important block

A just thought of a very useful block. I have needed it several times. There is an if "touching sprite" <touching[

And an if "touching colour" <touching color[

And an if "colour [ ] is touching colour [ ]" <color[  ]is over[

But a really good one to have would be if "colour [ ] is touching sprite".

Last edited by calebxy (2010-06-01 04:53:55)


I'm making my own Doctor Who series!  big_smile  See the first episode here.
And please join Story Zone!  big_smile

Offline

 

#2 2010-06-01 06:27:40

calebxy
Scratcher
Registered: 2009-12-31
Posts: 1000+

Re: A very important block

What do you think?


I'm making my own Doctor Who series!  big_smile  See the first episode here.
And please join Story Zone!  big_smile

Offline

 

#3 2010-06-01 07:15:44

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: A very important block

This can be easily done by making a variable on a sprite, such as TOUCHING RED. And then you use
__/¯¯¯¯¯¯\________________
| When ¶ Clicked               |
¯¯\_____/¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ |
| forever                           |
¯¯|¯¯¯\_____/¯¯¯¯¯¯¯¯¯¯¯¯¯¯|
   |if touching colour |red| |
   |    |¯¯¯¯¯¯\_____/¯¯¯¯¯¯¯|
   |    |set TOUCHING RED to yes
   |ELSE====================|
   |set TOUCHING RED to no  |
    ¯¯¯¯¯¯¯¯¯¯\_____/¯¯¯¯¯¯¯¯|
____________________________|

Last edited by johnnydean1 (2010-06-01 07:15:56)


You can now reach me on Twitter @johnnydean1_

Offline

 

Board footer