#get_cell_tile_data is Accessing the Wrong Tile.

2 messages · Page 1 of 1 (latest)

quick solar
#

Things to note:
'flowerNode' is an node object that holds multiple variables including the neighbors array as shown in the screenshot.
tileToModify is a Vector2 designating a tile on the tilemap grid.

Whenever I try to use get_cell_tile_data(0, space) to get the neighboring cell's node object it returns the node object for tileToModify; not the neighbor's node object. With debugging I can see that the space temporary variable getting passed in is the correct Vector2 for the neighbor cell.

Thanks in advanced!

silver python
#

I don't understand exactly what you're doing but I've seen people having trouble with understanding TileData.
Are you aware that custom data is the same for every tile of the same type? It has nothing to do with coordinates