Discuss Scratch

CakeandBott
Scratcher
100+ posts

Color I'm touching sensing reporter block

Most screenshots are almost impossible without this block because there is only one way to detect this which is place a bunch of if blocks with touching color blocks in them in a way that causes them to be massive. Please add this block!
add (color I'm touching :: sensing reporter) to [Screenshot v]

<touching color (color i'm touching :: sensing reporter)?> // Always true.
And maybe hexadecimal format too, which can be used by a workaround showed in this post

Last edited by CakeandBott (Oct. 14, 2017 16:31:41)

Charles12310
Scratcher
1000+ posts

Color I'm touching sensing reporter block

Nice.

(last key pressed :: sensing )

(sprite touching :: sensing ) // reports "Null" if the sprite isn't touching anything, reports the sprite name if so.

(color touching :: sensing ) // reports touched color.
DaEpikDude
Scratcher
1000+ posts

Color I'm touching sensing reporter block

What would happen if the sprite is touching multiple colours?
Would it report the average color? The one the sprite centre is touching?
WolfCat67
Scratcher
1000+ posts

Color I'm touching sensing reporter block

It seems like it may be a good idea; but really, what would happen if the sprite were to be touching multiple colours at the same time? Would it report a blend of all the colours, the colour that the sprite is touching the most (for example, lots of green, not a lot of red, reports green), or simply the one the centre is touching? You really would need to clarify this aspect.

EDIT: Whoops, looks like the majority of this was said in the post above.

Last edited by WolfCat67 (Oct. 14, 2017 05:41:30)

CakeandBott
Scratcher
100+ posts

Color I'm touching sensing reporter block

WolfCat67 wrote:

It seems like it may be a good idea; but really, what would happen if the sprite were to be touching multiple colours at the same time? Would it report a blend of all the colours, the colour that the sprite is touching the most (for example, lots of green, not a lot of red, reports green), or simply the one the centre is touching? You really would need to clarify this aspect.

EDIT: Whoops, looks like the majority of this was said in the post above.
How about blending the colors like with Minecraft sheep? And the color that the sprite is touching most if the colors can't blend.

DaEpikDude wrote:

What would happen if the sprite is touching multiple colours?
Would it report the average color? The one the sprite centre is touching?
Same as above.

Last edited by CakeandBott (Oct. 14, 2017 16:19:15)

CakeandBott
Scratcher
100+ posts

Color I'm touching sensing reporter block

CakeandBott wrote:

WolfCat67 wrote:

It seems like it may be a good idea; but really, what would happen if the sprite were to be touching multiple colours at the same time? Would it report a blend of all the colours, the colour that the sprite is touching the most (for example, lots of green, not a lot of red, reports green), or simply the one the centre is touching? You really would need to clarify this aspect.

EDIT: Whoops, looks like the majority of this was said in the post above.
How about blending the colors like with Minecraft sheep? And the color that the sprite is touching most if the colors can't blend.

DaEpikDude wrote:

What would happen if the sprite is touching multiple colours?
Would it report the average color? The one the sprite centre is touching?
Same as above.
Or the centre.
CakeandBott
Scratcher
100+ posts

Color I'm touching sensing reporter block

CakeandBott wrote:

CakeandBott wrote:

WolfCat67 wrote:

It seems like it may be a good idea; but really, what would happen if the sprite were to be touching multiple colours at the same time? Would it report a blend of all the colours, the colour that the sprite is touching the most (for example, lots of green, not a lot of red, reports green), or simply the one the centre is touching? You really would need to clarify this aspect.

EDIT: Whoops, looks like the majority of this was said in the post above.
How about blending the colors like with Minecraft sheep? And the color that the sprite is touching most if the colors can't blend.

DaEpikDude wrote:

What would happen if the sprite is touching multiple colours?
Would it report the average color? The one the sprite centre is touching?
Same as above.
Or the centre.
OOORRRR maybe make some lists! All non-user created reporters are variables. Why not add some lists? And Sensing versions of list access blocks! (Not add, replace, insert or delete.)
(sprite I'm touching :: sensing)
(color I'm touching :: sensing)
(item (1 v) of [color I'm touching v] :: sensing)
(length of [sprites I'm touching v] :: sensing) // see Charles's post
<[color I'm touching v] contains [thing] ? :: sensing>
PikachuB2005
Scratcher
100+ posts

Color I'm touching sensing reporter block

They should add something like this:
(touching color :: sensing)
that reports the color it's mainly touching, or list all colors in a list:
(touching colors :: list)
with these blocks to go with it:
<[touching colors v] contains (#ffffff) ? ::sensing>
(length of [ touching colorsv] :: sensing)
PikachuB2005
Scratcher
100+ posts

Color I'm touching sensing reporter block

Sorry I messed up the blocks

PikachuB2005 wrote:

They should add something like this:
(touching color :: sensing)
that reports the color it's mainly touching, or list all colors in a list:
(touching colors :: sensing)
with these blocks to go with it:
<[touching colors v] contains [#ffffff] ? ::sensing>
(length of [ touching colors] :: sensing)
PikachuB2005
Scratcher
100+ posts

Color I'm touching sensing reporter block

Sorry (again) that one block already exists

PikachuB2005 wrote:

Sorry I messed up the blocks

PikachuB2005 wrote:

They should add something like this:
(touching color :: sensing)
that reports the color it's mainly touching, or list all colors in a list:
(touching colors :: sensing)
with these blocks to go with it:
(length of [touching colors] :: sensing)
minikiwigeek2
Scratcher
1000+ posts

Color I'm touching sensing reporter block

Bump because of a duplicate
medians
Scratcher
1000+ posts

Color I'm touching sensing reporter block

Mockup (2.0):
([colors v] that I’m touching ::sensing)
([sprites v] that I’m touching ::sensing)

(number of [colors being touched v] ::sensing)
(number of [sprites being touched v] ::sensing)

(item ( v) of [colors being touched v] ::sensing)
(item ( v) of [sprites being touched v] ::sensing)
Heccit
Scratcher
500+ posts

Color I'm touching sensing reporter block

medians wrote:

Mockup (2.0):
([colors v] that I’m touching ::sensing)
([sprites v] that I’m touching ::sensing)
If the drop-down menu for those two blocks is for selecting if one or multiple color(s) are touching the sprite, I don't think we would need that, as just the singular option would probably be enough, and you can use " and " operator blocks for touching multiple colors

Powered by DjangoBB