Discuss Scratch

IronBit_Studios
Scratcher
1000+ posts

Touching Any Sprite Boolean

ShadowFlareX wrote:

…Whilst ‘any sprite’ is even worse because that's literally as inspecific as it gets.
*unspecific
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])
IronBit_Studios
Scratcher
1000+ posts

Touching Any Sprite Boolean

Bump!
ShadowFlareX
Scratcher
100+ posts

Touching Any Sprite Boolean

Inspecific is correct. Unspecific is also correct.
rdococ
Scratcher
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.
ev3commander
Scratcher
500+ posts

Touching Any Sprite Boolean

ShadowFlareX wrote:

But it d

IronBit_Studios wrote:

ShadowFlareX wrote:

This is bad because it simply detects if it's touching another sprite, which is kind of useless.
Not necessarily. You could say the same for this.
<touching color [#828282] ?>
“This is bad because it simply detects if it's touching a colour, which is kind of useless.”
Ahahaha!!! That's where you're wrong.
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.
Wrong. Then
“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
Scratcher
1000+ posts

Touching Any Sprite Boolean

Explain where an “any sprite touched” block could be used.
IronBit_Studios
Scratcher
1000+ posts

Touching Any Sprite Boolean

rdococ wrote:

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.
That would also be great, but you'd have to be a bit more specific. Like, would you mean
<<touching [any sprite v] ?> and < <touching color [#F06E2E] ?>>>

Last edited by IronBit_Studios (March 1, 2015 15:34:10)

IronBit_Studios
Scratcher
1000+ posts

Touching Any Sprite Boolean

Alberknyis wrote:

Explain where an “any sprite touched” block could be used.

IronBit_Studios wrote:

ShadowFlareX wrote:

In what situation would this be useful for?
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…
<<touching [ v] ?> or <<touching [ v] ?> or <<touching [ v] ?> or <<touching [ v] ?> or <<touching [ v] ?> or <<touching [ v] ?> or <<touching [ v] ?> or <<touching [ v] ?> or < > > > >> > >  > > 
IronBit_Studios
Scratcher
1000+ posts

Touching Any Sprite Boolean

Alberknyis
Scratcher
1000+ posts

Touching Any Sprite Boolean

IronBit_Studios wrote:

Alberknyis wrote:

Explain where an “any sprite touched” block could be used.

IronBit_Studios wrote:

ShadowFlareX wrote:

In what situation would this be useful for?
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…
<<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
Scratcher
1000+ posts

Touching Any Sprite Boolean

ShadowFlareX wrote:

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
Scratcher
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
Scratcher
1000+ posts

Touching Any Sprite Boolean

Alberknyis wrote:

IronBit_Studios wrote:

Alberknyis wrote:

Explain where an “any sprite touched” block could be used.

IronBit_Studios wrote:

ShadowFlareX wrote:

In what situation would this be useful for?
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…
<<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.
What about the 0.1?
Alberknyis
Scratcher
1000+ posts

Touching Any Sprite Boolean

IronBit_Studios wrote:

Alberknyis wrote:

IronBit_Studios wrote:

Alberknyis wrote:

Explain where an “any sprite touched” block could be used.

IronBit_Studios wrote:

ShadowFlareX wrote:

In what situation would this be useful for?
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…
<<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.
What about the 0.1?

I lost it.

Jk, it's just that I don't fully support just yet.
IronBit_Studios
Scratcher
1000+ posts

Touching Any Sprite Boolean

Alberknyis wrote:

IronBit_Studios wrote:

Alberknyis wrote:

IronBit_Studios wrote:

Alberknyis wrote:

Explain where an “any sprite touched” block could be used.

IronBit_Studios wrote:

ShadowFlareX wrote:

In what situation would this be useful for?
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…
<<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.
What about the 0.1?

I lost it.

Jk, it's just that I don't fully support just yet.
My point is, why not +1? Sorry if that sounded rude.

Last edited by IronBit_Studios (March 7, 2015 02:16:11)

IronBit_Studios
Scratcher
1000+ posts

Touching Any Sprite Boolean

IronBit_Studios
Scratcher
1000+ posts

Touching Any Sprite Boolean

Cyoce
Scratcher
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
Scratcher
1000+ posts

Touching Any Sprite Boolean

Cyoce wrote:

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?’ ”
I haven't hit Scratcher yet, so I can't change it yet. Thanks, by the way.
Edit- I just did!

Last edited by IronBit_Studios (March 14, 2015 01:50:03)

IronBit_Studios
Scratcher
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)

Powered by DjangoBB