Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
Flood fill for Tilemaps
Flood fill (simple tilemap)
Thanks for this plugin. Very Useful.
Thank you so much for this! Just what I've been looking for. One suggestion, I recommend in the tooltip for specifying the X/Y values, that you let people know that's a tilemap co-ordinate, and not a regular X/Y value. So they need to use Tilemap.PositionToTileX and Tilemap.PositionToTileY in there if they want to tap or click an area to start from.
Thanks for the info.
It would be nice if you could choose how many tiles it would fill, allowing you to, say, fill the 5 closest tiles to 0,0.
Very handy! Would it be possible to also add an option for 8-way filling, so that the fill leaks through adjacent corners?
Great addon! One issue though - if you attempt to flood fill an empty space (not enclosed with other tiles), nothing happens. And after that flood fill stops working completely.
For example - if you have an empty tilemap with an island in the middle, and you want to fill all remaining space with water tiles.
Thanks, I just update the plugin :)
c3plugins.stranianelli.com/tilemap-flood-fill and github.com/el3um4s/construct-plugins-and-addons/tree/master/tilemap-flood-fill
So here is the fixed version. I also added a second action to fill any types of tiles surrounded by border tiles.