I have a suggestion for a feature for an upcoming version of scratch:
Duplicatable sprites. Sort of like creating units in Warcraft 3 Campaign Editor (If anyone has ever used that) This would mean that you could put a script in the sprite that would be something like:
When (flag) clicked
Create [1] duplicate of [Sprite1] at x:[0] y:[0]
Or something similar to that. This would make game with guns, (bullets) and games with multiple enemies to fight much easier. You wouldn't have to create a sprite for every single bullet that could be fired.
Last edited by Fourex (2008-01-31 00:32:32)
Offline
This is a good idea that has come up a few times before on some other threads. I think it would be quite handy, especially if we had some sensor blocks that were not specific to any given sprite but could be applied to all sprites such as "When Touching Any Sprite" or probably even more useful: "When Touching Clones of Sprite X"
Offline
Yes sprite duplication would come in handy. But then we would need a way to remove the sprites as well.
so we would need something like
if (touching edge){
remove sprite
}
That way the extra sprites won't cause lag.
Offline
Nice idea!
______________________________________
wow!!!!!! nice post!
Offline
I'd like to see true OO instantiation at some point. There's already variables and sprite names - those make perfect object identifiers. As a non-blocks example:
$bob = new Cow;
$bob->moo();
unset($bob);
That said, Scratch is a beautiful language and environment (and community, for that matter!), and I appreciate it for what it already is. I don't say that about many development solutions that I use, either. Heh heh.
Offline
This can be now done with a simple and beatiful hack:
http://scratch.mit.edu/forums/viewtopic.php?pid=44647
Offline
Yes, I'd like to see that feature added too. I would make Scratch closer to OO... and much more powerful.
I like it: to me, Scratch is for today's kids what LOGO has been to my generation: something more expressive and 'friendlier' than the also popular BASIC. I just realized today that it is not possible to have syntax errors with Scratch: only logical ones. Wow... few IDE for the pros can guarantee that :-).
I'll try the hack mentioned above as a workaround. I'm currently pulling a simple game together to show it off to my nephews. Maybe they will start scratching their own soon...
Cheers!
Offline
Huh, what's with the necroposting?
Scratch 2.0 will include cloning, this thread is very, very outdated. Closing. ^^
Offline