How do i make a water moving/filling system

how do i make a water moving/filling system like in minecraft. (it doesnt have to be detailed, just it will slowly replace open spots on the same level with water, basically what is the algorithim for finding the spots)

players in my game can dig and i want the lakes and rivers to flow.

any help is appreciated.

1 Like

You can check if a tile is water, if so, for all tiles around it that are air, make those tiles water too, and add a “water level” attribute to them that will correlate with their water level. Then on those tiles, do the same thing, but make sure that the new tile’s water level is lower than the current tile’s water level.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.