I had an idea for the next version of Scratch: sprite classes. What I mean is, grouping several sprites together into a single "class".
Then you should be able to name the sprite classes, and apply them to scripts such as [blocks]<touching[[/blocks]. For example, on the drop-down menu of said block, you could be able to select a sprite class, in which then whenever the sprite which the [blocks]<touching[[/blocks] block affects touches any sprite grouped within the specified sprite class, the affected sprite would react in the way the script tells it to.
With this, you could simplify scripts very easily. I find it quite annoying to have to specify EVERY sprite I want a particular object to react to.
I hope this suggestion is taken into consideration. I would "officially" suggest it directly on the site, but apparently my account isn't qualified for that (?).
Offline
This is a great idea - it's really annoying having to individually program each sprite! I'd suggest it for you, but I'm out of votes
The only problem is blocks like "x position", "y position", "direction" etc. wouldn't work since those can only have values for a single sprite.
Last edited by hmnwilson (2010-11-29 22:58:07)
Offline
hmnwilson wrote:
This is a great idea - it's really annoying having to individually program each sprite! I'd suggest it for you, but I'm out of votes
![]()
The only problem is blocks like "x position", "y position", "direction" etc. wouldn't work since those can only have values for a single sprite.
Well, I suppose that with those, you'll have to specify each sprite.
Offline
This could be more useful if we could create sprites (and delete them) with code.
Offline