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
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
Offline
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
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
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
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.
Offline
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
TVflea wrote:
cool,the 850th topic.
That wasn't really worth bumping a 3 year old topic over.
Offline