Discuss Scratch

ResExsention
New Scratcher
1000+ posts

Grouping sprites

Pretty simple suggestion, and I hope it gets implemented at some point.

The idea is that you can group sprites together so that when one of them moves or rotates, every other sprite attached to it would move the same way as well. All the sprites would remain separate – perhaps groups could be color assigned. Also, when creating groups, they should be an option on whether sprites in the group would move relative to each other or not. Grouped sprites may or may not stay near each other in the sprite list.

Advantages

  • This would allow the creation of more complex objects out of several sprites (for example, adding firing points and individual turrets on a battleship that have to stay attached to a certain area ofthe ship regardless of its rotation or position)
  • This could also help with the organization of the sprite list, especially if you have tens of sprites.

Disadvantages

  • This would make things “slightly more complicated”, however using groups is a purely optional feature and it can probably be taught in less than five minutes.
dogeiscut
Scratcher
500+ posts

Grouping sprites

+support!
ResExsention
New Scratcher
1000+ posts

Grouping sprites

WindOctahedron wrote:

-snip-

Thanks, though. However since they don't really suggest having sprites in a group move relative to each other I don't think they would be called full duplicates…
-ClearFrost-
New Scratcher
24 posts

Grouping sprites

ResExsention wrote:

Pretty simple suggestion, and I hope it gets implemented at some point.

The idea is that you can group sprites together so that when one of them moves or rotates, every other sprite attached to it would move the same way as well. All the sprites would remain separate – perhaps groups could be color assigned. Also, when creating groups, they should be an option on whether sprites in the group would move relative to each other or not. Grouped sprites may or may not stay near each other in the sprite list.

Advantages

  • This would allow the creation of more complex objects out of several sprites (for example, adding firing points and individual turrets on a battleship that have to stay attached to a certain area ofthe ship regardless of its rotation or position)
  • This could also help with the organization of the sprite list, especially if you have tens of sprites.

Disadvantages

  • This would make things “slightly more complicated”, however using groups is a purely optional feature and it can probably be taught in less than five minutes.
highly support. we could save lots of broadcast blocks like this.
ResExsention
New Scratcher
1000+ posts

Grouping sprites

-ClearFrost- wrote:

highly support. we could save lots of broadcast blocks like this.

Actually, broadcasts would still need to be used to get the sprites to communicate to each other, but we could have like

broadcast in group [ v] :: events

Which could only be received by sprites that are in the same group.

Last edited by ResExsention (Dec. 1, 2019 03:43:18)

Nambaseking01
Scratcher
1000+ posts

Grouping sprites

dogeiscut wrote:

+support!

Please be constructive and explain why you support.



M'dude, did you just steal this from Lua? I would've expected that.

What would happen if you group sprites that already had some scripts that only work for one sprite in them and everything goes wrong? And would you be able to choose in what way the group would be organized?
LegoGerbil
Scratcher
32 posts

Grouping sprites

good idea it could look like
group with [ v]
LegoGerbil
Scratcher
32 posts

Grouping sprites

or
set group to [ v] with group name []
LegoGerbil
Scratcher
32 posts

Grouping sprites

grouping could also have this block
create clone of [ group]

Powered by DjangoBB