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

#1 2008-01-31 00:32:03

Fourex
Scratcher
Registered: 2008-01-30
Posts: 35

Duplicatable Sprites

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

 

#2 2008-02-01 08:27:27

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Duplicatable Sprites

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"


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#3 2008-02-01 09:39:03

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Duplicatable Sprites

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.


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#4 2008-02-01 10:23:21

JSO
Community Moderator
Registered: 2007-06-23
Posts: 1000+

Re: Duplicatable Sprites

I agree. Scratch really needs a duplicate feature. I think every object oriented language has the ability of creating (duplicating) objects/sprites using scripts, as well as removing them, ofcourse.


http://oi48.tinypic.com/2v1q0e9.jpg

Offline

 

#5 2008-02-01 14:42:08

Llennoccm7
Scratcher
Registered: 2008-01-20
Posts: 100+

Re: Duplicatable Sprites

Nice idea!
______________________________________
wow!!!!!! nice post!


Go to PipeIineGames! The First Annual Scratch Awards!
http://img411.imageshack.us/img411/8658/llennoccm7.png

Offline

 

#6 2008-02-01 15:38:18

TegansPoppy
Scratcher
Registered: 2008-01-06
Posts: 47

Re: Duplicatable Sprites

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.


http://guessmedia.com/scratch/

Offline

 

#7 2008-02-01 15:56:25

relyt12101
Scratcher
Registered: 2007-05-19
Posts: 500+

Re: Duplicatable Sprites

This is a great idea!


http://img392.imageshack.us/img392/2860/pspbanneregg089deiy0.png

Offline

 

#8 2008-06-27 07:37:07

s_federici
Scratcher
Registered: 2007-12-18
Posts: 500+

Re: Duplicatable Sprites

This can be now done with a simple and beatiful hack:

http://scratch.mit.edu/forums/viewtopic.php?pid=44647

Offline

 

#9 2012-12-21 22:12:09

RavingRabbid007
New Scratcher
Registered: 2012-12-21
Posts: 1

Re: Duplicatable Sprites

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

 

#10 2012-12-21 22:26:27

Firedrake969
Scratcher
Registered: 2011-11-24
Posts: 1000+

Re: Duplicatable Sprites

Please don't necropost.  This will be added in 2.0.


Click the sign.
https://s3.amazonaws.com/eterna/eterna2/logo2.png

Offline

 

#11 2012-12-21 22:47:11

cheddargirl
Scratch Team
Registered: 2008-09-15
Posts: 1000+

Re: Duplicatable Sprites

Huh, what's with the necroposting?

Scratch 2.0 will include cloning, this thread is very, very outdated. Closing. ^^


http://i.imgur.com/8QRYx.png
Everything is better when you add a little cheddar, because when you have cheese your life is at ease  smile

Offline

 

Board footer