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

#1 2007-07-09 08:55:33

toto1
Scratcher
Registered: 2007-05-30
Posts: 2

Clone

I really love Scratch and all its fun functions. However I really do feel that it is missing a dynamic sprite clone function and array handling. I would really love to do a "LIFE" type of simulation but can't really see how to go about doing it without this.

All the best

Toto

Offline

 

#2 2007-07-09 09:25:51

bigB
Scratcher
Registered: 2007-06-09
Posts: 100+

Re: Clone

As far as i know the origional sprite creation function was removed to make things simpler for beginners.  I think it will definately be harder to make a 'life' simulation without this function.

I would suggest you look at the script of kevin_karplus' bubblewrap idea.  although nothing like 'Life' it shows an ingenious way of useing just 1 sprite to do what you would expect to take many.  http://scratch.mit.edu/projects/kevin_karplus/10762


http://scratch.mit.edu/projects/bigB/260981 Draw to Text
http://scratch.mit.edu/projects/bigB/181829 3D Stunt Flyer

Offline

 

#3 2007-07-09 10:18:58

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: Clone

Conway's game of life would not be difficult to implement in Scratch as it is.  Dynamic sprites would *not* be the right way to do it, even if they were available. 

I would like dynamic sprites, but more for "boids" simulations.

Offline

 

#4 2007-07-09 11:05:23

Bloing_Gloing
Scratcher
Registered: 2007-05-11
Posts: 27

Re: Clone

I would definitely like cloning sprites. It would make it much easier to make my water simulation work like real water. However, there should be a way to delete cloned sprites, so if they are unneeded, they will not take up processing time.

Offline

 

#5 2007-07-10 08:28:51

jay
Scratch Team
Registered: 2007-03-11
Posts: 59

Re: Clone

I have recently implemented arrays in Scratch as a sprite. Please take a look and see if it helps you with what you originally wanted them for.
Array Sprite - Scratch Project

I have once tried implementing life in Scratch years ago. It focuses more on showing how "life" works and less on speed. It's posted under my projects here
Conway's Life Scratch Project

Offline

 

#6 2007-07-10 09:14:13

bigB
Scratcher
Registered: 2007-06-09
Posts: 100+

Re: Clone

ive just managed to make conways game of life on a small scale.  kevin you were right it is suprisingly easy.  i used a sprite with a diferent colour on each edge and corner that moves through every square rapidly using a variable calls neighbours to determine what should happen to that square.


http://scratch.mit.edu/projects/bigB/260981 Draw to Text
http://scratch.mit.edu/projects/bigB/181829 3D Stunt Flyer

Offline

 

#7 2007-07-10 09:59:31

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: Clone

Jay, your array sprite could be simplified by using stamping of 10 costumes rather than using the pen.  Not only does this simplify and speed up the "store" function, but the off-by-one error of the pen is avoided, so you can eliminate the "on website" variable.

Offline

 

#8 2007-07-11 09:53:22

toto1
Scratcher
Registered: 2007-05-30
Posts: 2

Re: Clone

Thanks guys for all the info, keep up the good work

Offline

 

#9 2011-03-03 20:24:39

TVflea
Scratcher
Registered: 2010-08-14
Posts: 1000+

Re: Clone

cool,the 850th topic.


-iNetMaster-'s not dead, get used to it. ! big_smile .
http://is.gd/YrQzXX

Offline

 

#10 2011-03-03 21:21:46

hmnwilson
Scratcher
Registered: 2007-07-04
Posts: 1000+

Re: Clone

TVflea wrote:

cool,the 850th topic.

That wasn't really worth bumping a 3 year old topic over.


I'm taking a break from Scratch until 2.0 comes out. Any messages sent between then and now probably won't be read - sorry.
(Oct. 20, 2011)

Offline

 

Board footer