As far as I know, the only behavior that it works with pathfindings and collision masks from tilemaps (and tilesets) created with the program Tiled is the behavior “Obstacle for navigation mesh pathfinding (experimental)”.
The usual behavior treat the whole tilemap object as an obstacle, so I can not use it.
I have changed the events slightly so I can have all the lines drawn, and also one circle at the starting point. Both circles are drawn after the lines so they appear over it.
I repeated your events, and I have the following situation: after the character reaches the end point, the drawn path remains, but after pressing it is deleted, a new path is drawn, which also remains, etc. But if you set the condition that the left button is pressed, and hold the button after pressing, then the drawn path disappears as the path passes to the end point. I would like to achieve the following effect: so that the drawn path disappears as the character passes the path, without remaining, but under the condition that the mouse button is released. Any ideas? Thanks in advance.
Yes, and also so that the drawn path disappears as the character passes this path, i.e. so that there is no longer a drawn path behind the character, but in front of the character, I hope I explained it correctly.