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
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
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.
Offline
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
Offline
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
It has? Dang. And yes I did come up with it.
Offline