Discuss Scratch
- Discussion Forums
- » Suggestions
- » Touching Any Sprite Boolean
- IronBit_Studios
-
1000+ posts
Touching Any Sprite Boolean
*unspecific …Whilst ‘any sprite’ is even worse because that's literally as inspecific as it gets.
First of all, my block is a block that can sense if any sprite is touched. That's defined, not “literally inspecific”.
Well, for one…
Jump
(word ( v) of [asdf1234! dskop])
- ShadowFlareX
-
100+ posts
Touching Any Sprite Boolean
Inspecific is correct. Unspecific is also correct.
- rdococ
-
1000+ posts
Touching Any Sprite Boolean
There should be sprite groups. You would be able to put sprites into certain groups, like Lava for all sprites made of lava, or Solid for solid things.
Then, you would be able to detect if your sprite was touching any sprite that is in a certain group.
Then, you would be able to detect if your sprite was touching any sprite that is in a certain group.
- ev3commander
-
500+ posts
Touching Any Sprite Boolean
Wrong. Then But it dAhahaha!!! That's where you're wrong.Not necessarily. You could say the same for this. This is bad because it simply detects if it's touching another sprite, which is kind of useless.<touching color [#828282] ?>“This is bad because it simply detects if it's touching a colour, which is kind of useless.”
This block only detects one colour, but the thing is ‘one color’ can come out as grey, green, blue, black, red, magenta, blue, or any other color in the light spectrum.
Edit: Whilst ‘any sprite’ is even worse because that's literally as inspecific as it gets.
Now if the suggestion was for sprite categories/groups, I wouldn't complain.
“if the scrolling background contains grey, the scrolling will be ruined.”
So support to IronBit_Studios.
Last edited by ev3commander (Feb. 28, 2015 21:33:26)
- Alberknyis
-
1000+ posts
Touching Any Sprite Boolean
Explain where an “any sprite touched” block could be used.
- IronBit_Studios
-
1000+ posts
Touching Any Sprite Boolean
Lava for all sprites made of lava, or Solid for solid things.That would also be great, but you'd have to be There should be sprite groups. You would be able to put sprites into certain groups, like a bit more specific. Like, would you mean
Then, you would be able to detect if your sprite was touching any sprite that is in a certain group.
<<touching [any sprite v] ?> and < <touching color [#F06E2E] ?>>>
Last edited by IronBit_Studios (March 1, 2015 15:34:10)
- IronBit_Studios
-
1000+ posts
Touching Any Sprite Boolean
Explain where an “any sprite touched” block could be used.
Projects that involve sprite-scanning, for some projects that involve just touching a sprite in general (Like a scanner that checks for sprites), it takes a long time to write “if touching Sprite2 or if touching Sprite3, etc.”. It would be fairly easy to implement, and otherwise… In what situation would this be useful for?<<touching [ v] ?> or <<touching [ v] ?> or <<touching [ v] ?> or <<touching [ v] ?> or <<touching [ v] ?> or <<touching [ v] ?> or <<touching [ v] ?> or <<touching [ v] ?> or < > > > >> > > > >
- Alberknyis
-
1000+ posts
Touching Any Sprite Boolean
Explain where an “any sprite touched” block could be used.Projects that involve sprite-scanning, for some projects that involve just touching a sprite in general (Like a scanner that checks for sprites), it takes a long time to write “if touching Sprite2 or if touching Sprite3, etc.”. It would be fairly easy to implement, and otherwise… In what situation would this be useful for?<<touching [ v] ?> or <<touching [ v] ?> or <<touching [ v] ?> or <<touching [ v] ?> or <<touching [ v] ?> or <<touching [ v] ?> or <<touching [ v] ?> or <<touching [ v] ?> or < > > > >> > > > >
Hmm. Well we can combine that with sprite grouping. That can let us detect multiple walls and deadly objects simultaneously with minimal scripts. Pretty good.
+0.9
By sprite grouping imagine some folders which you can insert sprites into, and use the folder name for things like “touching sprite”, to check for all sprites in the folder.
Last edited by Alberknyis (March 2, 2015 07:50:45)
- IronBit_Studios
-
1000+ posts
Touching Any Sprite Boolean
Inspecific is correct. Unspecific is also correct.http://www.absolutewrite.com/forums/showthread.php?t=244682
Back to topic, @rdococ,
add [MagmaBaddie] to [ Lava Thingsv]
if <<touching [any sprite v] ?> and < <[Lava Things v] contains [(SpriteName) ]>>> then
say [Lava!]
end
Last edited by IronBit_Studios (March 3, 2015 03:09:46)
- IronBit_Studios
-
1000+ posts
Touching Any Sprite Boolean
Oops!
add [MagmaBaddie] to [ Lava Things v]
if <<touching [any sprite v] ?> and <[Lava Things v] contains [ (SpriteName) ]>> then
say [Lava!]
end
Last edited by IronBit_Studios (March 3, 2015 03:12:49)
- IronBit_Studios
-
1000+ posts
Touching Any Sprite Boolean
What about the 0.1?Explain where an “any sprite touched” block could be used.Projects that involve sprite-scanning, for some projects that involve just touching a sprite in general (Like a scanner that checks for sprites), it takes a long time to write “if touching Sprite2 or if touching Sprite3, etc.”. It would be fairly easy to implement, and otherwise… In what situation would this be useful for?<<touching [ v] ?> or <<touching [ v] ?> or <<touching [ v] ?> or <<touching [ v] ?> or <<touching [ v] ?> or <<touching [ v] ?> or <<touching [ v] ?> or <<touching [ v] ?> or < > > > >> > > > >
Hmm. Well we can combine that with sprite grouping. That can let us detect multiple walls and deadly objects simultaneously with minimal scripts. Pretty good.
+0.9
By sprite grouping imagine some folders which you can insert sprites into, and use the folder name for things like “touching sprite”, to check for all sprites in the folder.
- Alberknyis
-
1000+ posts
Touching Any Sprite Boolean
What about the 0.1?Explain where an “any sprite touched” block could be used.Projects that involve sprite-scanning, for some projects that involve just touching a sprite in general (Like a scanner that checks for sprites), it takes a long time to write “if touching Sprite2 or if touching Sprite3, etc.”. It would be fairly easy to implement, and otherwise… In what situation would this be useful for?<<touching [ v] ?> or <<touching [ v] ?> or <<touching [ v] ?> or <<touching [ v] ?> or <<touching [ v] ?> or <<touching [ v] ?> or <<touching [ v] ?> or <<touching [ v] ?> or < > > > >> > > > >
Hmm. Well we can combine that with sprite grouping. That can let us detect multiple walls and deadly objects simultaneously with minimal scripts. Pretty good.
+0.9
By sprite grouping imagine some folders which you can insert sprites into, and use the folder name for things like “touching sprite”, to check for all sprites in the folder.
I lost it.
Jk, it's just that I don't fully support just yet.
- IronBit_Studios
-
1000+ posts
Touching Any Sprite Boolean
My point is, why not +1? Sorry if that sounded rude.What about the 0.1?Explain where an “any sprite touched” block could be used.Projects that involve sprite-scanning, for some projects that involve just touching a sprite in general (Like a scanner that checks for sprites), it takes a long time to write “if touching Sprite2 or if touching Sprite3, etc.”. It would be fairly easy to implement, and otherwise… In what situation would this be useful for?<<touching [ v] ?> or <<touching [ v] ?> or <<touching [ v] ?> or <<touching [ v] ?> or <<touching [ v] ?> or <<touching [ v] ?> or <<touching [ v] ?> or <<touching [ v] ?> or < > > > >> > > > >
Hmm. Well we can combine that with sprite grouping. That can let us detect multiple walls and deadly objects simultaneously with minimal scripts. Pretty good.
+0.9
By sprite grouping imagine some folders which you can insert sprites into, and use the folder name for things like “touching sprite”, to check for all sprites in the folder.
I lost it.
Jk, it's just that I don't fully support just yet.
Last edited by IronBit_Studios (March 7, 2015 02:16:11)
- Cyoce
-
500+ posts
Touching Any Sprite Boolean
Support! This would be very useful! However, “If touching sprite” sounds like an existing block. I suggest you rename the post to “ New Block Idea— ‘Touching Any Sprite?’ ”
- IronBit_Studios
-
1000+ posts
Touching Any Sprite Boolean
I haven't hit Scratcher yet, so I can't change it yet. Thanks, by the way. Support! This would be very useful! However, “If touching sprite” sounds like an existing block. I suggest you rename the post to “ New Block Idea— ‘Touching Any Sprite?’ ”
Edit- I just did!

Last edited by IronBit_Studios (March 14, 2015 01:50:03)
- IronBit_Studios
-
1000+ posts
Touching Any Sprite Boolean
Just to clarify, this is what it looks like:
<touching [any sprite v] ?>Thanks to @stickfiregames
Last edited by IronBit_Studios (March 14, 2015 02:47:45)
- Discussion Forums
- » Suggestions
-
» Touching Any Sprite Boolean