Discuss Scratch
- Discussion Forums
- » Suggestions
- » The '<Sprite> touches <Color>?' block
- 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
ok<touching color [#ADD8E6] ?>They already have this!
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
Well, not quite.<touching color [#ADD8E6] ?>They already have this!
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 clickedand then in another sprite
forever
set [touching color v] to <touching color [#1b37da] ?>
end
when green flag clicked
...
if <(touching color) = [true]> then
...
end
- medians
-
Scratcher
1000+ posts
The '<Sprite> touches <Color>?' block
well you could just doAlso, 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)

- Discussion Forums
- » Suggestions
-
» The '<Sprite> touches <Color>?' block