Godot Version
4.5
Question
Hello everyone
I created a subclass of a TileMapLayer called ArrowPath, present just there :
If it’s not supposed to show right now, the point is, for now, to show the tiles in range of a unit when we click on it
For instance :
Here is the code for ArrowPath (in C#) for now
public partial class ArrowPath : TileMapLayer
{
/// <summary>
/// Set multiple cells inside the TML
/// </summary>
/// <param name="cells">The amount of cells</param>
public void SetCells(List<Vector2I> cells)
{
GD.Print("SetCells called");
foreach (Vector2I item in cells)
{
SetCell(item, 0, new(2,2));
}
GD.Print("SetCells says :",GetUsedCells());
}
}
And here’s the TileSet I use
”Is it because you don’t call SetCells ?”
No. Here’s what happens after I click on one of those beautiful stickmen
![]()
And yet :
Before
After
I am newish on Godot so maybe there’s something I miss ? Thank you in advance





