A rather simple cellular automaton simulation. I wanted to figure out something to make for the February TOTM, I was recently making cellular automaton in Unity so I thought maybe I could do something similar for Snap!.
EDIT: I may make it to where you can use the cursor to place sand instead of it slowly filling up... soon.
EDIT 2: Yeah, done, hold left mouse button to place sand!
EDIT 3: Use number row to change type of cell.
Yes, this is very nice. Sort of reminds me of that snake game.
I have one user interface complaint: You hit the green flag and nothing happens. There should be a startup screen saying "Click the mouse and drag it around the screen" or something.
I've noticed a bug... If you're quick enough you can cause a cell to settle in mid-air, causing it to float, anybody got a suggestion? If there is no idea perhaps I can just make the script not stop...
I think what you need is a sprite-local variable (so each clone will have its own) called GROUNDED? or something that starts out False. Then you can test the variable of the clone you're touching, and stop (and set your variable to True) only if the other clone's variable is True.
Most clones never settle and still performs a loop. Only clones with y<-126 switch costume to "grounded".
So you need a better criterion, e.q. sprite remains at the same y position few times.
On the other hand, a very simple solution for eliminating the "being too quick" problem is to play the project on the mobile (smartphone) only. (One can be 'too quick' on computer, only; I guess).