Sand and Water v3.3

Sand and Water v3.3

by griffpatch

👁 443,340 ❤️ 20,614 ⭐ 18,062 🔄 759
Created: Feb 28, 2018 Last modified: Jan 30, 2024 Shared: Mar 1, 2018

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

Project thumbnail
View Project

Flombox V5 Crankyfrunks {DEMO} fixed the BPM

by OzzieTheGamerDude

Project thumbnail
View Project

SAMSUNG GALAXY TAB 4 Startup

by Ibrahimcb

Project thumbnail
View Project

Tom and Ben news PDXMoon

by siddharth1717

Project thumbnail
View Project

windows XD

by GetWreckedbyNemesis

Project thumbnail
View Project

Spamton Neo fight normal edition

by Lemonlemonlemonie

Project thumbnail
View Project

Mingle / (SD-K’s trauma of losing her parents)

by aphmau_kid

Project thumbnail
View Project

Super Mario: Scratch Edition

by jljr2

Project thumbnail
View Project

Among Us Online

by Blue4thCSE19

Project thumbnail
View Project

Tom and Gumball News

by TalkingfriendsLover

Project thumbnail
View Project

FNF Choco Engine V.0.9

by Chocolatechoco

Project thumbnail
View Project

Coding 1a

by vincentl1

Project thumbnail
View Project

chung pow kitties game (mobile friendly version)

by kawaiicandy122

Project thumbnail
View Project

|| Pの冒険/platformer 【拡散希望】

by YSTT491

Project thumbnail
View Project

Platform Engine (Alpha/Beta)

by xxX_Gr33n256_HD_Xxx

Project thumbnail
View Project

Endless alphabet B-4 - BETWEEN

by Roseor

Project thumbnail
View Project

Scratch themed 10 minute timer

by 313109summit

Project thumbnail
View Project

Black Hole Add Round 2 But I Put Pillar John’s Revenge

by gabrielboquinhas7

Project thumbnail
View Project

Numberblocks Band ReTrillion Remastered (100.0decimyrillion-1.0Micrillion)

by Numberblocksbandddd

Project thumbnail
View Project

Beat up coca cola (new update)

by yyeee409

Project thumbnail
View Project

Toca life world my addition 2.0

by rennacookie

Project thumbnail
View Project

5 new buttons for beat up games remix remix remix

by WalFan13BoxinScratch

Project thumbnail
View Project

Should I Make My ABC Lore? (VOTING Closed)

by nevanparker

Project thumbnail
View Project

Paper Minecraft J Edition 3.4.1 ソードアートオンラインMOD

by Rumanjyu

Project thumbnail
View Project

BEAT UP SKY! V0.4.3

by MarcelloDave