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
500 followers special! remix-3
by KubaKolodziejReturns
Blue Mist Plus 90,000 All Jumpscares P2 (93,000 to 95,998)
by Jharring20
Tug Of War #Games #Fun #2 Players
by Coding_Scratch_Pro
celbi star catcher
by MikaelDarque
Ultra Numberblocks Night 2023 remix-7
by gfa572
Beat up Sonic Dlc remix remix remix remix remix remix
by Lestat1025
Incredibox - Cool As Ice secret staycation edition
by copilot525
Beat Up P Head Deluxe 6.5
by juliescott12
FBI OPEN UP!!!!
by bitbow
Video Call - 0 remix
by DylanXD609
Beat Up Talking Tom Cat 3: Good Ol' Classics
by RGYBProductions
Sprunki But Ocs
by mikolandmack
undertale void sans
by ims0skibidi
Among Us v.4 Complete Freeplay #Games (1) remix
by Roselegendshadow
Grasslands || a platformer #all #platformer #entry #minion_100
by minion_100
Talking Tom Cat 2 En Scratch
by pinwis2078
Hitchhiker's guide to the Tagmar Region remix
by The_Fun_Guy_
Murder Time Trio demo
by cold_food
็ตฑๅ็ใใซใผใใฃใฎใฐใซใกใใงใน2D
by snoopy1987
Ikara's Um Jammer Lammy Engine
by The-Bloxmouse
Beat Up Kim The Monkey 2
by aaroncrist7
Rise Above || Complete Palette MAP
by Alpha_Wolf_Coder
Beat up Edward QWERTY (v0.1)
by GooleSharty122
undertal game platfomer
by GameArth