This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2010-11-29 22:07:29

UltimateRidley
New Scratcher
Registered: 2010-11-28
Posts: 5

Sprite Classes

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

 

#2 2010-11-29 22:53:39

hmnwilson
Scratcher
Registered: 2007-07-04
Posts: 1000+

Re: Sprite Classes

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  sad

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)


I'm taking a break from Scratch until 2.0 comes out. Any messages sent between then and now probably won't be read - sorry.
(Oct. 20, 2011)

Offline

 

#3 2010-11-30 15:40:39

UltimateRidley
New Scratcher
Registered: 2010-11-28
Posts: 5

Re: Sprite Classes

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  sad

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.  sad

Offline

 

#4 2010-11-30 16:40:54

juststickman
Scratcher
Registered: 2009-05-31
Posts: 1000+

Re: Sprite Classes

This could be more useful if we could create sprites (and delete them) with code.


http://is.gd/iBQi2 Add grob to your sig and help with world dominiation!http://is.gd/iBQ9Q                                                             Hey guys, we're seriously naming our team bob?

Offline

 

Board footer