Discuss Scratch

The_Olcia
Scratcher
88 posts

Touching Any Sprite Boolean

Support

  1. Workarounds are too long
  2. Scratch Jr has it
  3. Good if you don't want to use too many clones or/and even reach 300 limit (eg. particle system and clones)
For now workarounds are:
  • as stated in OP (long chain of blocks)
  • make list of every sprite and make code to check if it touches anything from the list
HighlaneGamingStudio
Scratcher
100+ posts

Touching Any Sprite Boolean

Support, we already have blocks for if any key is pressed, why not a block for if touching any sprite?
<key [any v] pressed?>
when [any v] key pressed
rdococ
Scratcher
1000+ posts

Touching Any Sprite Boolean

In most cases a ‘touching any sprite?’ condition would be too general. E.G. you want to detect walls during collision and enemies during damage detection but not both at the same time.
HighlaneGamingStudio
Scratcher
100+ posts

Touching Any Sprite Boolean

rdococ wrote:

In most cases a ‘touching any sprite?’ condition would be too general. E.G. you want to detect walls during collision and enemies during damage detection but not both at the same time.
<<touching (any sprite v) ?> and <not <touching (enemies v) ?>>>
hoppingcoin404
Scratcher
50 posts

Touching Any Sprite Boolean

<touching [any sprite v] ?>
(sprites touching :: sensing)
(distance to [nearest sprite v])
(distance to [farthest sprite v])
(distance to x: [0], y: [0] :: sensing)
(2 nearest sprites :: sensing)
I agree

Last edited by hoppingcoin404 (June 4, 2025 12:13:38)

Olimon7661
Scratcher
1000+ posts

Touching Any Sprite Boolean

I support. This would be useful. Also, remove the supporters list from the OP, it's not really necessary.
minniesworld
Scratcher
500+ posts

Touching Any Sprite Boolean

Olimon7661 wrote:

I support. This would be useful. Also, remove the supporters list from the OP, it's not really necessary.
It's from 2015… They're probably not active anymore.
But this is also a useful feature, support
HighlaneGamingStudio
Scratcher
100+ posts

Touching Any Sprite Boolean

hoppingcoin404 wrote:

(distance to )
(distance to )
(distance to x: , y: :: sensing)
(2 nearest sprites :: sensing)
Those aren't part of the suggestion and have workarounds. I think the third one is rejected, too.

Powered by DjangoBB