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

#1 2012-05-11 20:53:34

zbugni
Scratcher
Registered: 2008-12-13
Posts: 500+

New Helpful Block

I has a proposal!  big_smile
Thar should be an <if color___ touching sprite ___>
this would be helpful in making color more efficient and flexible, as you wouldn't have to make all your levels specific colors.
But
this is just an idea.  Whatdya think?

Offline

 

#2 2012-05-11 20:56:03

trinary
Scratcher
Registered: 2012-01-29
Posts: 1000+

Re: New Helpful Block

It could be useful, although it is possible to do this already.


http://trinary.tk/images/signature_.php

Offline

 

#3 2012-05-12 03:58:06

RedRocker227
Scratcher
Registered: 2011-10-26
Posts: 1000+

Re: New Helpful Block

Blocks are supposed to be specific to the sprite they're used on. You can make a workaround in like thirty seconds, just set a variable to 0 if it's not touching, 1 if it is.


Why

Offline

 

#4 2012-05-12 21:23:18

ImagineIt
Scratcher
Registered: 2011-02-28
Posts: 1000+

Re: New Helpful Block

I support! People are saying that there's a workaround but there really isn't...

Offline

 

#5 2012-05-13 07:42:15

zbugni
Scratcher
Registered: 2008-12-13
Posts: 500+

Re: New Helpful Block

ImagineIt wrote:

I support! People are saying that there's a workaround but there really isn't...

Yeah, if there really is a workaround, please tell me someone.  I think they're not getting it.

Offline

 

#6 2012-05-13 08:17:34

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: New Helpful Block

zbugni wrote:

ImagineIt wrote:

I support! People are saying that there's a workaround but there really isn't...

Yeah, if there really is a workaround, please tell me someone.  I think they're not getting it.

In one sprite:

when gf clicked
forever
if <touching color [#FF0000]?>
set [touchingColor  v] to (1)
else
set [touchingColor  v] to (0)
end
Then in any other sprite, or the stage:

when gf clicked
forever
if <(touchingColor) = [1]>
the sprite is touching the color
else
the sprite is NOT touching the color
end

Offline

 

Board footer