Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
Our educational partners
Free education resources to use in the classroom
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.
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.