Filling an Area

I’ve been making a building game, and I’ve been wondering. How can I make a fill system similar to the fill system that Blockate uses? I’ve tried to make it myself, but they all ended up bugging, because I have to worry about negatives. Please, if you are trying to help, give code examples and/or explanations.

1 Like