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

#1 2008-08-14 09:01:27

1jim3bob
Scratcher
Registered: 2008-07-30
Posts: 86

Groups

Hello scratchers!
I thought that there could be groups when programming
The there could be a block like: If <touching a member of group _____>
Something like that. What do you think?
Btw this might not be really clear ask anything your dont understand.

Offline

 

#2 2008-08-14 09:25:03

SonicPopsDad
Scratcher
Registered: 2008-07-30
Posts: 41

Re: Groups

Yeah, I like that idea... my latest project has 3 enemy space ship sprites trying to pick up 7 fuel cell sprites... I've ended up with an awful lot of duplicated code and big if...then case blocks as a consequence.  I would have had 5 enemy sprites and 10 fuel cells, but I was getting annoyed at the code maintenance required to do it!

Groups would have simplified quite a bit, I think.

Offline

 

#3 2008-08-14 12:25:24

Ivaash
Scratcher
Registered: 2008-02-08
Posts: 100+

Re: Groups

1jim3bob wrote:

Hello scratchers!
I thought that there could be groups when programming
The there could be a block like: If <touching a member of group _____>
Something like that. What do you think?
Btw this might not be really clear ask anything your dont understand.

LOL I had the exact same Idea! I was making this game with multiple enemies and I didn't want to use color sensing so I put in if touching enemy soldier 1 or touching enemy soldier 2 LOLZ ect. ect.


Hey there..

Offline

 

#4 2008-08-14 12:29:05

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Groups

This idea has been mentioned before I think... As I remember it, you could divide it into groups and there could be <if touching [anything] of [group]> ([] is a dropdown menu) and stuff like that. You didn't come up with the idea  tongue

Offline

 

#5 2008-08-18 09:04:16

1jim3bob
Scratcher
Registered: 2008-07-30
Posts: 86

Re: Groups

coolstuff wrote:

This idea has been mentioned before I think... As I remember it, you could divide it into groups and there could be <if touching [anything] of [group]> ([] is a dropdown menu) and stuff like that. You didn't come up with the idea  tongue

It has? Dang. And yes I did come up with it.

Offline

 

Board footer