Nezon

So imagine, you have multiple color block scripts, and you have to change them all, or you want a sprite to detect what color it is touching, or set a variable to the Hex / RGB code, but it would get complicated, and the workarounds are just too hard or take too much space, or more! so why not try these blocks?

set [RGB v] to (color sprite is touching? :: sensing)


(color sprite is touching? :: sensing)


(RGB) = [#e17abe]

(pick random [#e17abe] to [#e56abe])

make more blocks make more!

ShyGamer16

It seems this is a duplicate.
Please continue this conversation in the topic above.

Nezon

ShyGamer16 wrote:

It seems this is a duplicate.
Please continue this conversation in the topic above.
This topic is about creating other types of blocks that relate to colors, not trying to find a way to detect color. I have read the topic, and i do not think this is a duplicate.

ShyGamer16

Nezon wrote:

ShyGamer16 wrote:

It seems this is a duplicate.
Please continue this conversation in the topic above.
This topic is about creating other types of blocks that relate to colors, not trying to find a way to detect color. I have read the topic, and i do not think this is a duplicate.
Oh, I must have misunderstood something. Sorry.

sportfan999

I found this interesting topic that suggests this block:
(color sprite is touching?::sensing)
It's closed, so I can't report it as a dupe. Just letting you know about it

mybearworld



1. (color sprite is touching? :: sensing) :: #333
That block sounds good, but it brings up a problem.
Imagine the stage to be a gradient, and Scratch Cat.
ScratchCat is touching multiple colors! So how would
that work?


2. (RGB :: pen) :: #333
I think that RGB should be a pen block…
Also, I have not much to say about this.
But what would happen when I do
say (RGB :: pen)
? Would it say
R: 255, G: 128, B: 128
or
ff8080


3. (pick random [#e17abe] to [#e56abe]) :: #333
sounds good, but would be hard to implement.
See, the # colors are hexadecimal numbers - that means they can be converted to decimal numbers.
#ff0000 - 0 - this
#00ffff - 65535 - this
That means
pick random [#ff0000] to [#00ffff]
could report
54321 -> #00d431 -> this
So, that wouldn't work, I think.

Sorry if I seem mean, I don't mean to be!
Scratch on!

Nezon

sportfan999 wrote:

I found this interesting topic that suggests this block:
(color sprite is touching?::sensing)
It's closed, so I can't report it as a dupe. Just letting you know about it
w i e r d l o l

mybearworld wrote:

1. (color sprite is touching? :: sensing) :: #333
That block sounds good, but it brings up a problem.
Imagine the stage to be a gradient, and Scratch Cat.
ScratchCat is touching multiple colors! So how would
that work?


2. (RGB :: pen) :: #333
I think that RGB should be a pen block…
Also, I have not much to say about this.
But what would happen when I do
say (RGB :: pen)
? Would it say
R: 255, G: 128, B: 128
or
ff8080


3. (pick random [#e17abe] to [#e56abe]) :: #333
sounds good, but would be hard to implement.
See, the # colors are hexadecimal numbers - that means they can be converted to decimal numbers.
#ff0000 - 0 - this
#00ffff - 65535 - this
That means
pick random [#ff0000] to [#00ffff]
could report
54321 -> #00d431 -> this
So, that wouldn't work, I think.

Sorry if I seem mean, I don't mean to be!
Scratch on!

hmm yes.

Super_Scratch_Bros20

It appears this list of suggestions aren't considered closely related – they can warrant their own topics. Otherwise, you could start saying something like, “They're all for Scratch, so they're similar!” These suggestions, however, seem like they can work just fine without each other.

Paddle2See

Please create a separate topic for each suggestion you have, rather than creating a list of suggestions. That way, the conversation stays focused and each idea can get the attention it needs.

Before making a new topic, please check out the following:
Thank you!