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

#1 2010-05-05 19:57:13

infinitum3d
Scratcher
Registered: 2009-05-10
Posts: 100+

"If Touching Color" question...

So apparently "If Touching Color" means actually sharing the same pixel space, its not side by side touching.

Am I correct in my thinking, or am I doing something terribly wrong in my project since its not doing what I want (LOL)?

I have a 30x30 red square at 0,0 (so reaching from -14 to +15) and a 30x30 BLUE square at 30,0 (so reaching from +16 to +45). In my testing this, they are NOT touching, since they are side-by-side, not overlapping.

Again, am I understanding this correctly???

Thanks!

Offline

 

#2 2010-05-05 20:05:54

soupoftomato
Scratcher
Registered: 2009-07-18
Posts: 1000+

Re: "If Touching Color" question...

Yes


I'm glad to think that the community will always be kind and helpful, the language will always be a fun and easy way to be introduced into programming, the motto will always be: Imagine, Program, Share - Nomolos

Offline

 

#3 2010-05-05 20:08:19

laser100
Scratcher
Registered: 2009-12-04
Posts: 100+

Re: "If Touching Color" question...

infinitum3d wrote:

So apparently "If Touching Color" means actually sharing the same pixel space, its not side by side touching.

Am I correct in my thinking, or am I doing something terribly wrong in my project since its not doing what I want (LOL)?

I have a 30x30 red square at 0,0 (so reaching from -14 to +15) and a 30x30 BLUE square at 30,0 (so reaching from +16 to +45). In my testing this, they are NOT touching, since they are side-by-side, not overlapping.

Again, am I understanding this correctly???

Thanks!

Yes, you are. i just tested it.

Offline

 

#4 2010-05-05 20:10:40

infinitum3d
Scratcher
Registered: 2009-05-10
Posts: 100+

Re: "If Touching Color" question...

Thanks for the quick replies!

Offline

 

#5 2010-05-14 19:52:52

12three
Scratcher
Registered: 2008-06-12
Posts: 1000+

Re: "If Touching Color" question...

Everybody above me is right.  smile

Offline

 

Board footer