Discuss Scratch

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

SPRITE GROUPS!!!!!!!

Wouldn't costumes do the job? And cloning?
Blaze349
Scratcher
1000+ posts

SPRITE GROUPS!!!!!!!

ProdigyZeta7 wrote:

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
we could make it easier also sprite groups help organize sprites like if you had 50 sprites
northmeister
Scratcher
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
Scratcher
1000+ posts

SPRITE GROUPS!!!!!!!

Blaze349 wrote:

ProdigyZeta7 wrote:

Still no support. It is completely possible to do sprite grouping like so.

{blocks}
we could make it easier also sprite groups help organize sprites like if you had 50 sprites
*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.
Blaze349
Scratcher
1000+ posts

SPRITE GROUPS!!!!!!!

ProdigyZeta7 wrote:

Blaze349 wrote:

ProdigyZeta7 wrote:

Still no support. It is completely possible to do sprite grouping like so.

{blocks}
we could make it easier also sprite groups help organize sprites like if you had 50 sprites
*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.
you don't understand I mean like instead of scrolling through 50 sprites you could just go to a folder.
northmeister
Scratcher
100+ posts

SPRITE GROUPS!!!!!!!

northmeister wrote:

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.
It's already been rejected - it won't be added.
Blaze349
Scratcher
1000+ posts

SPRITE GROUPS!!!!!!!

northmeister wrote:

northmeister wrote:

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.
It's already been rejected - it won't be added.
well….

Lightnin wrote:

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

SPRITE GROUPS!!!!!!!

ProdigyZeta7 wrote:

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

SPRITE GROUPS!!!!!!!

Blaze349 wrote:

ProdigyZeta7 wrote:

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?
i've tried it it works
xlk
Scratcher
100+ posts

SPRITE GROUPS!!!!!!!

ProdigyZeta7 wrote:

Blaze349 wrote:

ProdigyZeta7 wrote:

Still no support. It is completely possible to do sprite grouping like so.

{blocks}
we could make it easier also sprite groups help organize sprites like if you had 50 sprites
*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.
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…
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
Scratcher
1000+ posts

SPRITE GROUPS!!!!!!!

xlk wrote:

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…
Clones are most certainly not pointless. But I can agree that they don't have versatile interactions, per se.

Blaze349 wrote:

you don't understand I mean like instead of scrolling through 50 sprites you could just go to a folder.
Then in that case, duplicate.

Last edited by ProdigyZeta7 (Feb. 21, 2014 22:58:57)

lcb01
Scratcher
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
Scratcher
500+ posts

SPRITE GROUPS!!!!!!!

(S(U(P(P(O(R(T::obsolete)::looks)::sensing)::operators)::control)::variables)::obsolete)
Penguin9090_new
Scratcher
500+ posts

SPRITE GROUPS!!!!!!!

Icb01, don't necropost plz
Gabby2015
New Scratcher
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
Scratcher
1000+ posts

SPRITE GROUPS!!!!!!!

Gabby2015 wrote:

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
Please don't necropost.
Koopakid6000
Scratcher
100+ posts

SPRITE GROUPS!!!!!!!

Gabby2015 wrote:

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
that's necroposting and completely off topic
Techtix
Scratcher
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
Scratcher
100+ posts

SPRITE GROUPS!!!!!!!

Techtix wrote:

I'd love for this feature to be added. Because a bigger project with more sprites means a huge mess
Don't necropost

Powered by DjangoBB