Discuss Scratch

PrincessPanda_test_
Scratcher
1000+ posts

"Almost"

No support, too ambiguous.
dude341
Scratcher
1000+ posts

"Almost"

dude341 wrote:

Yanderan wrote:

Here is my newest (for now) idea:
<almost touching color [#758606] ?::sensing>
Semi-support. People have different definitions of “almost”.
DownsGameClub
Scratcher
1000+ posts

"Almost"

I still can't support. “Almost” is too ambiguous. Is it when it is “almost” touching the sprite? Or is it when the color is “almost” the same? The ambiguity just too great for this block to be in an entry level programming website. Besides, you have to be specific in programming.
Jonathan50
Scratcher
1000+ posts

"Almost"

mrbobbygreathead wrote:

Workaround:
change size by (10)
if <touching color [#309917] ?> then

end
change size by (-10)

Anyway, the question about almost is “by how much?”
The sprite will be a bit larger in the body of the IF THEN block, so it should be
change size by (10)
set [almost touching color? v] to <touching color [#309917] ?>
change size by (-10)
if <(almost touching color?) = [true]> then
...
end
Alberknyis
Scratcher
1000+ posts

"Almost"

Nobody got my sarcasm D:
I mean, I made it really subtle, but I did have an extra message for people who quoted what I was saying.

But still, I really think for the sake of ambiguity that this:
<almost touching color [#758606] ?::sensing>
Should be replaced with this:
<within () pixels of color [#395f4a]::sensing>

Powered by DjangoBB