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

BEAT UP DORA!

by buzz--

Project thumbnail
View Project

You vs. the Zombot more more more (add more buttons than 1!)

by crazycrazybaby17

Project thumbnail
View Project

Swappings vs. Zombies (SVZ) V1.0

by zavierjos0819

Project thumbnail
View Project

The Jemel King Slime TV Movie - Well, uh, that explains a lot! (Nick Jr. USA 2017)

by LylesJM

Project thumbnail
View Project

Mario + Sonic Battle for the land Demo

by JABryant7

Project thumbnail
View Project

Beauty And The Beast Intro

by sl0thie

Project thumbnail
View Project

champion

by alejandro

Project thumbnail
View Project

Beat Up Classic Numberblock 10 remix

by SENSPARKS

Project thumbnail
View Project

tug of war

by s171741

Project thumbnail
View Project

Solar system 2

by tcssamo_htan

Project thumbnail
View Project

Numbers Band 86 remix remix

by tatudobenja2407

Project thumbnail
View Project

Timeline of solar system! With hypothetical binary after 1.4 mill years and Planet X/9 (BLT)

by 2025Hunt3

Project thumbnail
View Project

Holly The Cat (Music Video)

by JasowkeFan10

Project thumbnail
View Project

Super Smash Bros. Scratch Edition remix-2

by ruinar

Project thumbnail
View Project

Add a button to kill MusicDisc1004!!!! #10 remix

by fishu4

Project thumbnail
View Project

Gravity Sandbox (Solar System Creator 3.0)

by Sojourner555

Project thumbnail
View Project

γƒ’γƒƒγƒˆοΌ†γƒ–γƒ­γƒΌ / Hit & blow

by yoanz

Project thumbnail
View Project

Super Sonic Maker 2 (V.01)

by GamerJax29

Project thumbnail
View Project

Deltarune Chapter 3 Mike's Big Showdown (Legacy)

by Sad_Bread_Official

Project thumbnail
View Project

DUNK BALL ζ—₯本θͺžη‰ˆ

by tantan9024

Project thumbnail
View Project

Oblitus Casa : Scratch Edition (UPT: Post-Mortem)

by lordmario04

Project thumbnail
View Project

Meals on Wheels Bus doing its thing

by Verbisback

Project thumbnail
View Project

Beat up Sans ! [V.1.7] remix

by sans35676

Project thumbnail
View Project

Beat Up Diego Leal remix

by GIGAMAPA