Discuss Scratch

IronBit_Studios
Scratcher
1000+ posts

Touching Any Sprite Boolean

Basically, what my idea is is that there should be an “Touching any sprite” Boolean, because 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.” I think it would look like this:
credit to stickfiregames
<touching [any sprite v] ?>
There should also be a reporter called
(sprites touching :: sensing)
I'm noticing a lot of people are asking the same thing-

Alberknyis wrote:

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

IronBit_Studios wrote:

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 < > > > >> > >  > > 
CURRENT SUPPORTERS (46 And Counting)
IronBit_Studios(obviously)
stickfiregames
CosmicSans
CatsUnited
LionsStair
NolanAwesome
44701
scratchrainbow
Silphaer
peterules54
ev3commander
Alberknyis (90%)
Cyoce
theonlygusti
Starbolt1
TheHockeyist
mundofinkyenglish
Tommy100
m801234
JoeyTheChicken
scrooge200
Penguin9090_new
thelucariokid
scratch_inno
Tymewalk
nether_before
19f8361
pokejofe
HSL2014
Pot-Of-Gold
marilynjosiahbojo
CGRises
Cream_E_Cookie
Samanyolu
Unlicht
Scratcher1002
scratchinghead
wizard192
gamebeater187
BookOwl
Ninchanko
Botchko_Otkho
Leadrien2366
DrEthan
JonathanSchaffer
Inreal49
Non-supporters
ShadowFlareX
Econinja
Blank1234

Last edited by IronBit_Studios (Aug. 18, 2016 04:32:28)

stickfiregames
Scratcher
1000+ posts

Touching Any Sprite Boolean

<touching [any sprite v] ?>
I support
IronBit_Studios
Scratcher
1000+ posts

Touching Any Sprite Boolean

stickfiregames wrote:

<touching [any sprite v] ?>
I support
Awesome! Thanks!
PaganoLeo10
Scratcher
100+ posts

Touching Any Sprite Boolean

That already exists:
<touching [sprite name v] ?>
IronBit_Studios
Scratcher
1000+ posts

Touching Any Sprite Boolean

PaganoLeo10 wrote:

That already exists:
<touching [sprite name v] ?>
I know that, my concept is a block that can detect if any sprite is touched. As I mentioned before, it's a hassle to write “if touching SpriteName” for projects that require detecting for many sprites.
IronBit_Studios
Scratcher
1000+ posts

Touching Any Sprite Boolean

Bump!
mac_54
Scratcher
100+ posts

Touching Any Sprite Boolean

IronBit_Studios wrote:

Bump!
What does that mean.
IronBit_Studios
Scratcher
1000+ posts

Touching Any Sprite Boolean

mac_54 wrote:

IronBit_Studios wrote:

Bump!
What does that mean.
Bring Up My Post, or putting a forum thread at the front again, because most forums/discussions are organized chronologically.
IronBit_Studios
Scratcher
1000+ posts

Touching Any Sprite Boolean

Bump- I need support!
LionsStair
Scratcher
100+ posts

Touching Any Sprite Boolean

You don't write it just to let you know, there also already is a block.
CosmicSans
New Scratcher
100+ posts

Touching Any Sprite Boolean

Support! This would be great for so many things!
little_kitten
Scratcher
500+ posts

Touching Any Sprite Boolean

Cool idea! Otherwise you'd… well
<<touching [ v] ?> or <<touching [ v] ?> or <<touching [ v] ?> or <<touching [ v] ?> or <<touching [ v] ?> or <<touching [ v] ?> or <<touching [ v] ?> or <<touching [ v] ?> or < > > > >> > >  > > 
Vordar
Scratcher
69 posts

Touching Any Sprite Boolean

I know what you mean, it would save time. Good idea! But there is a solution. Just make all your sprites so that they have a certain color (like green) on the edge and then have something like:
<touching color [#00FF00] ?>

Hope it helps until your idea or something like it comes out!
stickfiregames
Scratcher
1000+ posts

Touching Any Sprite Boolean

Vordar wrote:

I know what you mean, it would save time. Good idea! But there is a solution. Just make all your sprites so that they have a certain color (like green) on the edge and then have something like:
<touching color [#00FF00] ?>

Hope it helps until your idea or something like it comes out!
But then you are limited in what your sprites can look like.
IronBit_Studios
Scratcher
1000+ posts

Touching Any Sprite Boolean

LionsStair wrote:

You don't write it just to let you know, there also already is a block.
Really? Can you please post that in Scratchblock form for me, because it's not on the Scratch on my computer.
ShadowFlareX
Scratcher
100+ posts

Touching Any Sprite Boolean

In what situation would this be useful for?
IronBit_Studios
Scratcher
1000+ posts

Touching Any Sprite Boolean

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

Touching Any Sprite Boolean

Not a bad idea. Support!
P444
Scratcher
500+ posts

Touching Any Sprite Boolean

Instead of that big loop thingy, you can put touching main sprite in all other sprites that you'd need the main sprite to touch. Still you'd have to put an if touching main sprite in the other 100 sprites, so support.
LionsStair
Scratcher
100+ posts

Touching Any Sprite Boolean

IronBit_Studios wrote:

LionsStair wrote:

You don't write it just to let you know, there also already is a block.
Really? Can you please post that in Scratchblock form for me, because it's not on the Scratch on my computer.
<touching [sprite v] ?>

I see what you're suggesting now, support.
I thought you were simply just wanting a block that sensed a sprite.

Powered by DjangoBB