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

#1 2009-01-18 19:08:40

redware
Scratcher
Registered: 2007-05-21
Posts: 92

Clone [sprite] at [x] [y] pointing in [direction]

Someone has probably already mentioned it but .... could we please have a CLONE sprite function to duplicate a sprite (and press the green flag for that sprite only) and position it on the stage pointing in a particular direction ?

It may need to create it's own unique name and have a remove block to remove it when done. This would be useful for firing rockets from spaceships and so forth and get around having to create and hide lots of sprites all of which have different names making them difficult to control.

Thanks for listening....

Offline

 

#2 2009-01-18 19:37:31

Buddy_ca111
Scratcher
Registered: 2008-08-30
Posts: 100+

Re: Clone [sprite] at [x] [y] pointing in [direction]

Forever
Clone [Spam] at x:[0] y:[0] pointing in [90]


By reading this you agree to giving me your soul, money, passwords, projects, abiltys and your bases

Offline

 

#3 2009-01-18 19:38:27

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

Re: Clone [sprite] at [x] [y] pointing in [direction]

Yeah, this has been suggested many times. The main concern is that newbies would clone too many times and generate 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 2009-01-18 20:05:10

mrweston
Scratcher
Registered: 2007-12-13
Posts: 100+

Re: Clone [sprite] at [x] [y] pointing in [direction]

If the team was able to add cloning of sprites (essentially instances of classes), I'm sure it would be trivial to add a hard cap on the number of clones you could make, with a pref (or .ini file or whatever) for advanced users to remove it.

Would be a bit of a challenge to find an elegant way to be able to uniquely reference each sprite instance, but I can think of a few possibilities.

Offline

 

#5 2010-09-10 16:51:47

Jrocket97
Scratcher
Registered: 2009-10-03
Posts: 100+

Re: Clone [sprite] at [x] [y] pointing in [direction]

That sort of thing would help for the bloon td game I'm tryin to make

Offline

 

#6 2010-09-10 17:00:04

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

Re: Clone [sprite] at [x] [y] pointing in [direction]

Jrocket97 wrote:

That sort of thing would help for the bloon td game I'm tryin to make

Yep! This is a rather old topic, however, and further topics have been even more active than this one.  smile  I'll close this up, then - but feel free to continue the discussion in any of the masses of newer topics on the subject.

Last edited by coolstuff (2010-09-10 17:06:44)

Offline

 

Board footer