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

#1 2012-10-25 19:37:08

legobob23o
Scratcher
Registered: 2012-06-22
Posts: 500+

Color [color] is touching [sprite] boolean block

It's like this:

<color [#FF0000] is touching [sprite v]?>
I think there should be a block like this. The stage could sense sprites and stuff like that. An example would be there's a color on part of the stage. And if a sprite is touching that color, it would do its action. What do you guys think? Scratch On!  smile

Offline

 

#2 2012-10-25 19:39:38

Wes64
Scratcher
Registered: 2011-08-19
Posts: 1000+

Re: Color [color] is touching [sprite] boolean block

yes. it is needed.


Experienced 2.0 Tester: Ask me questions!
Using Firefox 13.0, Flash plugin version 11.4.402.287, and Windows XP Professional.

Offline

 

#3 2012-10-26 02:30:12

northmeister
Scratcher
Registered: 2011-07-12
Posts: 1000+

Re: Color [color] is touching [sprite] boolean block

This would make it much easier to make my OS, where it needs to sense when the mouse is touching the red cross to close the window.

Support.


http://i48.tinypic.com/5a25g5.png

Offline

 

#4 2012-10-26 06:34:28

machinespray
Scratcher
Registered: 2012-05-09
Posts: 93

Re: Color [color] is touching [sprite] boolean block

Good idea. I think that MIT should put that in Scratch 2.0


I am made a mod for Scratch. If you have any ideas for the mod please post it on this forum page.http://scratch.mit.edu/forums/viewtopic.php?id=108265http://internetometer.com/image/38591.png
I am http://blocks.scratchr.org/API.php?action=onlineStatus&amp;type=text&amp;user=machinespray

Offline

 

#5 2012-10-26 07:53:09

dvd4
Scratcher
Registered: 2010-06-30
Posts: 1000+

Re: Color [color] is touching [sprite] boolean block

It would really help with a lot of projects. Support.

@machinespray: I think it's ST not MIT.


I made a mod  big_smile  It's called blook!
http://i49.tinypic.com/16ia63p.png

Offline

 

#6 2012-10-26 12:18:18

zubblewu
Scratcher
Registered: 2011-02-17
Posts: 1000+

Re: Color [color] is touching [sprite] boolean block

dvd4 wrote:

It would really help with a lot of projects. Support.

@machinespray: I think it's ST not MIT.

Scratch is made by the Scratch team who work at MIT. It's a project of MIT.


........................................................................................................................................................................................................................................

Offline

 

#7 2012-10-26 12:50:43

Martiscratch
Scratcher
Registered: 2012-05-04
Posts: 100+

Re: Color [color] is touching [sprite] boolean block

[agree]
(That means I agree and [/agree] means I disagree.)


http://signaturecraft.us/signatures/eJw1yDEOgCAMBdC9p_gnICphdnA18QwoNZIAJRTD9Z184-uP74gKjxIvxi3tzaii3ZA-PjPijdgxvBpjcCYeeOtKW2Ou3OhIAbuUIOUvpdnNtDhH1tL0AQVCHgk~.png

Offline

 

#8 2013-04-07 09:31:02

machinespray
Scratcher
Registered: 2012-05-09
Posts: 93

Re: Color [color] is touching [sprite] boolean block

Sprite 1


when gf clicked

forever if <touching color [#39207F]?> 

broadcast [touched v]

stop script

end

Sprite 2

when I receive [touched v]

YOUR Code HERE


That is a workaround.

Last edited by machinespray (2013-04-07 09:32:53)


I am made a mod for Scratch. If you have any ideas for the mod please post it on this forum page.http://scratch.mit.edu/forums/viewtopic.php?id=108265http://internetometer.com/image/38591.png
I am http://blocks.scratchr.org/API.php?action=onlineStatus&amp;type=text&amp;user=machinespray

Offline

 

#9 2013-04-07 12:04:04

Mokat
Scratcher
Registered: 2011-12-08
Posts: 1000+

Re: Color [color] is touching [sprite] boolean block

Not really nessecary with a simple workaround.


http://www.eggcave.com/egg/977371.pnghttp://www.eggcave.com/egg/977376.pnghttp://www.eggcave.com/egg/1005291.pnghttp://www.eggcave.com/egg/996745.png

Offline

 

#10 2013-05-01 20:02:42

Scratch12300
New Scratcher
Registered: 2013-04-13
Posts: 38

Re: Color [color] is touching [sprite] boolean block

I think that maybe you could create this:

<[Pulldown of all sprites]<>

Offline

 

#11 2013-05-01 20:16:15

Scratch12300
New Scratcher
Registered: 2013-04-13
Posts: 38

Re: Color [color] is touching [sprite] boolean block

Scratch12300 wrote:

I think that maybe you could create this instead:

<[Pulldown of all sprites]<>

Oops, sorry, made a mistake! I meant (for example):

<[Sprite1 v] <touching color [(color here)]>>
or
<[Sprite1 v] <(x position) = [50]>>
but if it contains a global variable such as
<[Sprite1 v] <(variable1) = [100]>>
it works the same as without the block
<[Sprite1 v] <>
because that enables more.

Offline

 

Board footer