I've been searching the forum (links below) and found some examples of systems that create autotiles, editable in real time, but they're not working.
(A) construct.net/en/forum/construct-2/how-do-i-18/tilemap-auto-tile-help-69848
(B) construct.net/en/tutorials/auto-tiling-autotilegen-719
Studying the .capx files, I realized that searching for the "-1" (empty) tile no longer works in the latest version of construct2. So, I added an extra tile to the tilemap, and now the empty tile check has been replaced by this new piece, just as the function of deleting the tile has been replaced by adding the extra tile in its place. This worked in the example file by master R0j0hound.
Test: r0j0hound-autotile-example.netlify.app
Download: dropbox.com/scl/fi/64gknm1sla1phhf0pg7ma/r0j0hound-Autotile-Edit.capx
Although it is functional, (A) is from a more simplified example. I looked for a new tutorial (B), which has an event structure very similar to the previous file, but adding adjacent tiles in the calculation. However, I can't get it to work.
It has the same system of searching for the empty tile (-1), I repeated the same strategy of adding an extra tile and basing the search on it (tile id 48). There was a small error in event 17, "tiletopositionX(mouse.Y)". I made the necessary correction, but it still didn't work.
I need help!