Discuss Scratch
- ProdigyZeta7
-
1000+ posts
SPRITE GROUPS!!!!!!!
Still no support. It is completely possible to do sprite grouping like so.
//For example, say you want your sprite to find and point to the nearest enemy
define Point to nearest enemy
set [dist v] to [1000] //threshold can be lowered for "close" detection
set [id v] to [0]
set [check v] to [1]
repeat (# of enemies)
if <(distance to (join [Enemy](check))) < (dist)> then
set [id v] to (check)
set [dist v] to (distance to (join [Enemy](check)))
end
change [check v] by (1)
end
if <(id) > [0]>
point towards (join [Enemy](id))
end
//You can also alter the code so that several enemies can be checked for touching
define Find enemies touching me
delete (all v) of [Touching v]
set [check v] to [1]
repeat (# of enemies)
if <touching (join [Enemy](check))?> then
add (check) to [Touching v]
end
change [check v] by (1)
end
- Blaze349
-
1000+ posts
SPRITE GROUPS!!!!!!!
we could make it easier also sprite groups help organize sprites like if you had 50 sprites Still no support. It is completely possible to do sprite grouping like so.//For example, say you want your sprite to find and point to the nearest enemy
define Point to nearest enemy
set [dist v] to [1000] //threshold can be lowered for "close" detection
set [id v] to [0]
set [check v] to [1]
repeat (# of enemies)
if <(distance to (join [Enemy](check))) < (dist)> then
set [id v] to (check)
set [dist v] to (distance to (join [Enemy](check)))
end
change [check v] by (1)
end
if <(id) > [0]>
point towards (join [Enemy](id))
end
//You can also alter the code so that several enemies can be checked for touching
define Find enemies touching me
delete (all v) of [Touching v]
set [check v] to [1]
repeat (# of enemies)
if <touching (join [Enemy](check))?> then
add (check) to [Touching v]
end
change [check v] by (1)
end
- northmeister
-
100+ posts
SPRITE GROUPS!!!!!!!
I suggested this on the old Scratch Suggestions part of the 1.4 site but it was rejected - I believe it was because a workaround could be made using cloning.
- ProdigyZeta7
-
1000+ posts
SPRITE GROUPS!!!!!!!
*sigh* The reason why “we” can't implement this is because it can already be done with the existing blocks. If your blocks were added, Scratch would be too easy; it's supposed to be somewhat easy to learn, but still have a challenging feel.we could make it easier also sprite groups help organize sprites like if you had 50 sprites Still no support. It is completely possible to do sprite grouping like so.
{blocks}
- Blaze349
-
1000+ posts
SPRITE GROUPS!!!!!!!
you don't understand I mean like instead of scrolling through 50 sprites you could just go to a folder.*sigh* The reason why “we” can't implement this is because it can already be done with the existing blocks. If your blocks were added, Scratch would be too easy; it's supposed to be somewhat easy to learn, but still have a challenging feel.we could make it easier also sprite groups help organize sprites like if you had 50 sprites Still no support. It is completely possible to do sprite grouping like so.
{blocks}
- northmeister
-
100+ posts
SPRITE GROUPS!!!!!!!
It's already been rejected - it won't be added. I suggested this on the old Scratch Suggestions part of the 1.4 site but it was rejected - I believe it was because a workaround could be made using cloning.

- Blaze349
-
1000+ posts
SPRITE GROUPS!!!!!!!
well….It's already been rejected - it won't be added. I suggested this on the old Scratch Suggestions part of the 1.4 site but it was rejected - I believe it was because a workaround could be made using cloning.
Could be fun! We'll be making as few changes as possible for a while though, just trying to fix the bugs and release.
Best way to help think something through would be to make a mockup project that shows your idea in action.
- Blaze349
-
1000+ posts
SPRITE GROUPS!!!!!!!
Still no support. It is completely possible to do sprite grouping like so.//For example, say you want your sprite to find and point to the nearest enemy
define Point to nearest enemy
set [dist v] to [1000] //threshold can be lowered for "close" detection
set [id v] to [0]
set [check v] to [1]
repeat (# of enemies)
if <(distance to (join [Enemy](check))) < (dist)> then
set [id v] to (check)
set [dist v] to (distance to (join [Enemy](check)))
end
change [check v] by (1)
end
if <(id) > [0]>
point towards (join [Enemy](id))
end
//You can also alter the code so that several enemies can be checked for touching
define Find enemies touching me
delete (all v) of [Touching v]
set [check v] to [1]
repeat (# of enemies)
if <touching (join [Enemy](check))?> then
add (check) to [Touching v]
end
change [check v] by (1)
end
does the homing attack even work?
- Blaze349
-
1000+ posts
SPRITE GROUPS!!!!!!!
i've tried it it worksStill no support. It is completely possible to do sprite grouping like so.//For example, say you want your sprite to find and point to the nearest enemy
define Point to nearest enemy
set [dist v] to [1000] //threshold can be lowered for "close" detection
set [id v] to [0]
set [check v] to [1]
repeat (# of enemies)
if <(distance to (join [Enemy](check))) < (dist)> then
set [id v] to (check)
set [dist v] to (distance to (join [Enemy](check)))
end
change [check v] by (1)
end
if <(id) > [0]>
point towards (join [Enemy](id))
end
//You can also alter the code so that several enemies can be checked for touching
define Find enemies touching me
delete (all v) of [Touching v]
set [check v] to [1]
repeat (# of enemies)
if <touching (join [Enemy](check))?> then
add (check) to [Touching v]
end
change [check v] by (1)
end
does the homing attack even work?
- xlk
-
100+ posts
SPRITE GROUPS!!!!!!!
While I agree on workarounds, clones are pointless when it comes to interactions, so it boils down to the old stamping method. IMO, clones are pointless as of now, thanks to “run without screen refresh”, not the custom block, just that one feature…. IT could have been like the if block or the forever one, but it would have been quite unimpressive release-wise…*sigh* The reason why “we” can't implement this is because it can already be done with the existing blocks. If your blocks were added, Scratch would be too easy; it's supposed to be somewhat easy to learn, but still have a challenging feel.we could make it easier also sprite groups help organize sprites like if you had 50 sprites Still no support. It is completely possible to do sprite grouping like so.
{blocks}
Sprite groups can be usefull, but isn't what you'd do in coding, more like a game maker thing. Of course, <touching> block becomes the same, you don't do that in coding, you use hitboxes…
- ProdigyZeta7
-
1000+ posts
SPRITE GROUPS!!!!!!!
Clones are most certainly not pointless. But I can agree that they don't have versatile interactions, per se. While I agree on workarounds, clones are pointless when it comes to interactions, so it boils down to the old stamping method. IMO, clones are pointless as of now, thanks to “run without screen refresh”, not the custom block, just that one feature…. IT could have been like the if block or the forever one, but it would have been quite unimpressive release-wise…
Then in that case, you don't understand I mean like instead of scrolling through 50 sprites you could just go to a folder.duplicate.
Last edited by ProdigyZeta7 (Feb. 21, 2014 22:58:57)
- lcb01
-
43 posts
SPRITE GROUPS!!!!!!!
I also think groups would be awesome. By the way, there's lots of other pro-group people around Scratch, so maybe we could get them all together or something. 

- Cyoce
-
500+ posts
SPRITE GROUPS!!!!!!!
(S(U(P(P(O(R(T::obsolete)::looks)::sensing)::operators)::control)::variables)::obsolete)
- Gabby2015
-
1 post
SPRITE GROUPS!!!!!!!
Hey there. I'm new to Scratch and have no clue whatsoever how to things work around here. I make my own art, and I ma working on 2 Projects now. I have also made one edit that I was allowed to take and edit. The original owner of the edit is PastelFlower. I'd love it if u could check out my work and tell me how to do things?? Thanks x
- IgDegOo
-
1000+ posts
SPRITE GROUPS!!!!!!!
Please don't necropost. Hey there. I'm new to Scratch and have no clue whatsoever how to things work around here. I make my own art, and I ma working on 2 Projects now. I have also made one edit that I was allowed to take and edit. The original owner of the edit is PastelFlower. I'd love it if u could check out my work and tell me how to do things?? Thanks x
- Koopakid6000
-
100+ posts
SPRITE GROUPS!!!!!!!
that's necroposting and completely off topic Hey there. I'm new to Scratch and have no clue whatsoever how to things work around here. I make my own art, and I ma working on 2 Projects now. I have also made one edit that I was allowed to take and edit. The original owner of the edit is PastelFlower. I'd love it if u could check out my work and tell me how to do things?? Thanks x
- Techtix
-
8 posts
SPRITE GROUPS!!!!!!!
I'd love for this feature to be added. Because a bigger project with more sprites means a huge mess 

- Randomness-TV
-
100+ posts
SPRITE GROUPS!!!!!!!
Don't necropost I'd love for this feature to be added. Because a bigger project with more sprites means a huge mess