Hello!
I’m trying to develop a Paper.io game, but I don’t know how to create the territory claiming system. I want a similar system to this game: Color.io - Roblox , but don’t know how to create it. I tried using raycasting but that didn’t work well either.
I’m happy about any help.
1 Like
Hi, the system you’re likely going to be using is flood filling, there are already several useful posts regarding to this:
Back from eating.
I have no idea what “specific functions” you are talking about. You don’t need “specific functions” to make a flood fill. The idea is simple. You start at a specific node given by a x and y coordinate. You consider if the cells adjacent to it are filled. For each one that is not you continue the process.
You use a 2D array and check a specific value at <x, y> then consider if the points <x - 1, y> and <x + 1, y>, and <x, y + 1> and so on are filled. If they are then flood che…
Hello, i’m making 2d pixel paint GUI right now and i want to make paint bucket tool
i’m research how do i make it and seem like i need to make something called Flood Fill
but i don’t know how can i make it as GUI
i keep finding for a hours and still don’t found any posts that really help me about this
does anyone know how to make it? or anypost that talking about gui flood fill, I really can’t find it.
i will share the script here if i can solve it by myself
[image]
1 Like
(traditional flood filling uses square and a four way detection, you may need to adjust for 6 sides instead)
2 Likes
Thank you so much for letting me know! I’ll test it out.
system
(system)
Closed
March 11, 2025, 5:51pm
#5
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.