Discuss Scratch

s_ecialkai
Scratcher
83 posts

The '<Sprite> touches <Color>?' block

<sprite [Cat v] is touching [#000000] ?>
This would make making obstacles in map projects much easier
-KuteCitty99-
Scratcher
20 posts

The '<Sprite> touches <Color>?' block

<touching    color [#ADD8E6] ?>
They already have this!
s_ecialkai
Scratcher
83 posts

The '<Sprite> touches <Color>?' block

-KuteCitty99- wrote:

<touching    color [#ADD8E6] ?>
They already have this!
ok
Looks like i gotta close this then since i didnt think abt
if <touching color [#1b37da] ?> then
broadcast [Idk v]
end
BigNate469
Scratcher
1000+ posts

The '<Sprite> touches <Color>?' block

-KuteCitty99- wrote:

<touching    color [#ADD8E6] ?>
They already have this!
Well, not quite.

That would only be for the current sprite. The block being suggested here has a drop-down in it allowing you to select the sprite- so no, this isn't technically implemented. Because with the block suggested here, you can do
if <[some sprite other than the one this is in v] is touching [#0000FF]? :: sensing> then
...
end
bubgamer072
Scratcher
97 posts

The '<Sprite> touches <Color>?' block

well you could just do
when green flag clicked
forever
set [touching color v] to <touching color [#1b37da] ?>
end
and then in another sprite
when green flag clicked
...
if <(touching color) = [true]> then
...
end
medians
Scratcher
1000+ posts

The '<Sprite> touches <Color>?' block

bubgamer072 wrote:

well you could just do
Also, you can use a sprite only variable to avoid clutter in the list of variables (this option is selectable when you create a variable in a sprite, though not with the Stage)

Powered by DjangoBB