Sand and Water v3.3
by griffpatch
Instructions
โ โ โ SAND and WATER โ โ โ 30 Jan 2024 - v3.3 โ Perfect painting fix Yep - One of those sand simulators :) - So why did I make this project? Well, because this idea came to me - why can't we interact with the sand... like push it around? So I gave it a go! Also, I tried to make the project run quick by using lists of active sand to only process the sand that is moving. I recently updated the project to add water too. Now water simulation is FAR harder and more laggy than sand so forgive the lag if you start trying to hurl lots of water around :) โ โ โ Controls โ โ โ โMouse -โโ Move around to push sand. โClick -โโDrop New Sand โDrag -โโClick and drag a sand dropper to move or delete โT -โโโTool - (Spray, Pencil, Eraser, etc) โM -โโโMaterial - (Sand, Water, Concrete, etc) โS -โโโSize - (of brush / pen) โH -โโโHand - (for pushing sand) โP -โโโPause โR -โโโReset As always - Have fun! โ โ โ So how does it work? โ โ โ I have 3 main lists in my scripts: L - Level Grid (a row for every possible pixel location) A - Active Sand (a list of the active sand locations on the grid) X - Invalidate (a list of screen locations that need repainting) P - Power (used by water to evaporate old water) I only look for movement of active sand pixels, and when one moves, it looks for new sand pixels to add to the active sand pixel list. The pushing of sand is done by tracing from the current mouse position across the sand piles looking for a possible empty space on the other side. โ โ โ Change Log โ โ โ 30 Jan 2024 - v3.3 โ Perfect painting fix 29 Mar 2019 - v3.2 โ Minor painting fix 16 Mar 2018 - v3.1 โ New left hand toolbar โ Sand and water interact better (slow fall and drift in water + fixed water teleporting) 6 Mar 2018 - v2.2 โ Blue is now officially water! Took some doing! Hope it doesn't lag too much to be enjoyable! 5 Mar 2018 - v2.0 โ Removed air bubbles in sand when moved โ Prevent sand being deleted when moved โ Added Toolbar โ Added Blue sand - floats on orange sand โ Added sand droppers
Project Details
- Visibility
- Visible
- Comments
- Enabled
More Cool Projects
The Argam Countalong: Suprise Attack!
by NumberArt2024
Beat Up Classic TFT 10
by samsungS125g
talking tom and ben news Meme
by matveyiv2014
spiffy.exe buttons FAIRL BUTTONS ^678768
by coopstar_white3
What's your opinion on Behavior Card Day videos?
by BFDI_II
PBS KIDS Live TV: Dot
by NumberblockFaner303
Numberblocks Intro But It's 2025 ,Learning blocks Theme Song
by nirvaan2016
Geometry dash-Darker waves (hard)
by yzirafa
Piano that rhymes with grug
by grug_is_our_god
one of my custom mmch promo music (ft: jab and toodles)
by mmchfan9982
The Scratch Movie 11
by BenBoy333
fidget spinner
by GGguy2006
ๆไบบใฎใใใฎ่ฑๅบใฒใผใ ๏ผ
by Dody_kamin
Friday Night Funkin' vs annie
by djstorm420
Scratch-Scryption Plus V1.2.1
by lecrump
(Long Notes!) FNF Arrow Simulator v1.7
by ShindoBoxing
Uncannyblocks band Fractions
by greenSixteen256
alphabet loreflashback [22?/idk frames]
by tvokids_e-again
ใ Deltarune - Spamton NEO Fight / REDONE ใ
by TreMustPlay
Portal Scratch Edition 1.7
by _The_Gamer_Man_
Among Us Zombie - Ep 4( Animation)
by Swit_Dom
would you flush me? remix
by A_fan_345
I tried to beat rainbow course without touching a single coin! (NSMB2)
by NintendoRetro
Weather Radar Simulator (Beta)
by trussleburg