Bippity bumpity boo
Offline
Lucario621 wrote:
RHY3756547 wrote:
Bippity bumpity boo
Lol
O RLY?
Sorry...
Offline
i SUPPORT!
Offline
Uh, RHY - you can already do object groups - I'll upload a project with it in.
Offline
I've uploaded the project containing object groups here: http://scratch.mit.edu/projects/Wolfie1996/860165
It doesn't work online, though. Which isn't ideal Sorry for double posting!
Last edited by Wolfie1996 (2010-01-25 17:12:14)
Offline
But for one, that doesn't work online because they didn't foresee anyone using it. Two - that doesn't work with the *trigger if* function I mentioned so that the application could grab the variable from the item it touched.
Offline
well this reminds me BYOB thats getting b8r then scratch as the BYOBs block building capability allows the reporter and balloeen U talked about what u say.
Just make an atomic block.
repeat (lnList)
||i = i+1;
||if(item (i) of list = = desired object)
|||stop script;
set i = = \0;
now for a balloen (tru or fals)
u can do if i = = \0
set reportr to false;
else
set reportr to true;
report reportr.
and for a reporter
just report i for which entity it is touching.
I wonder u couldnt figure that out.
BUT oh yeash BYOB projects cannot be uploaded on site.
WHY DONT THEY GIVE BLOCK BUILDING CAPABILITY USING C++ like headers.
Offline
RHY3756547 wrote:
greenflash wrote:
This would be awesome! I don't think it needs to be broken into other categories though.
Yeah - I just think they should also rename the "Variables" section to something more general though.
Definately.
Offline
I've also tried suggesting this several times before, to much the same response.
Offline
Bippity Bumpity Boo.
Add this Noo-w!
Fanofcena:
Doing everything in the bloody universe with the current scratch blocks just results in lag. ...and a lot.
Offline
It'd also be nice if the existing list and variable blocks could go into things and work online.
If touching (Item (any) of list) doesn't work online, nor does (variable (bla) of (variable) )
Offline
illusionist wrote:
http://i45.tinypic.com/20rtvmw.png
How is this?
I think its about time we broke up the variables category!
Tell me the code of it!
Tell me the code of it for Squeak!
Offline
RHY3756547 wrote:
It'd also be nice if the existing list and variable blocks could go into things and work online.
If touching (Item (any) of list) doesn't work online, nor does (variable (bla) of (variable) )
... which are quite good workarounds and/or little-known thingies, thank you for mentioning it!
Offline
*bump*
Hopefully this will be in the next version.
Offline
This idea can actually be implemented now but it's not very easy. Just create a list named "enemies" and fill it with the sprite names of all enemy sprites. Then to check collisions against them:
i=0 repeat( length of (enemies)) { if(touching (item i of enemies)){ broadcast("something bad") } change i by 1 }
What would be really helpful is a (my name) reporter that holds the name of a sprite. That way you wouldn't have to populate the enemies list manually.
Offline
fullmoon wrote:
This idea can actually be implemented now but it's not very easy. Just create a list named "enemies" and fill it with the sprite names of all enemy sprites. Then to check collisions against them:
Code:
i=0 repeat( length of (enemies)) { if(touching (item i of enemies)){ broadcast("something bad") } change i by 1 }What would be really helpful is a (my name) reporter that holds the name of a sprite. That way you wouldn't have to populate the enemies list manually.
Yeah... I've used that before, and it works well offline, but not at all online. I call it "sprite iteration".
Offline
The-Whiz wrote:
Yeah... I've used that before, and it works well offline, but not at all online. I call it "sprite iteration".
Really? Weird! I've never tried this in practice, so I'll take your word for it . It's a shame the Scratch team hasn't paid more attention to this feature, it's really useful.
Offline
Using more blocks just makes the program run slower - as it has to interpret more. What I want is direct funtionality so that new users can easily create enemies groups etc. without the complications and slowdowns of using more advanced ways. For me - it's the slowdowns.
Offline
fullmoon wrote:
The-Whiz wrote:
Yeah... I've used that before, and it works well offline, but not at all online. I call it "sprite iteration".
Really? Weird! I've never tried this in practice, so I'll take your word for it . It's a shame the Scratch team hasn't paid more attention to this feature, it's really useful.
Yeah... This project. The ball uses the sprite iteration... But, as you can see, it doesn't work online. I think it is because the Scratch project player can't process variables or lists in blocks like [go to []] and <touching []>.
Offline
The-Whiz wrote:
fullmoon wrote:
The-Whiz wrote:
Yeah... I've used that before, and it works well offline, but not at all online. I call it "sprite iteration".
Really? Weird! I've never tried this in practice, so I'll take your word for it . It's a shame the Scratch team hasn't paid more attention to this feature, it's really useful.
Yeah... This project. The ball uses the sprite iteration... But, as you can see, it doesn't work online. I think it is because the Scratch project player can't process variables or lists in blocks like [go to []] and <touching []>.
It's a bit laggy with more platforms...
Offline
GirWaffles64 wrote:
RHY3756547 wrote:
It would be great if objects could be put in groups that we could use to detect collisions for objects of the same type, report variables and much more.
Here's how it would work.
Say we made a group called enemies. There would be "Add me to group ()" and "Remove me from group()" blocks, as well as "Empty group" etc. Now, we make a lot of enemies and add them to the Ememies group. Now - in the unfortunate player who has to face these enemies' scripts we put something like "if touching (Group (enemies)) { Set (Y-velocity) to (Y-velocity of (Trigger If))". Trigger if would refrence to the object from the group that the script interacted with.
An example of this would be the implementation in The Sims Carnival Game Creator. Trust me - it made multiple object collision a LOT easier.This idea has been in my head for years. Now somebody agrees with me!
(does victory dance)
Good Idea I Agree
"Sarcasm doesn't work on paper"
Offline
I just noticed that Wolfie's method DOES NOT WORK RIGHT. Implementing it in a game I am making allows my character to go through the wall sometimes because the item selected from the list is random.
There is no other way (without atomicism, but even then scratch's interpreter would make games too darn slow). We need object groups. D:
Offline