lukesnyder01 / Ennarta

A tiny 2d rpg in Godot, experimenting with constraint based tile generation.
0 stars 0 forks source link

Runtime error when trying to update adjacency rules for the new TileMapLayer #1

Closed lukesnyder01 closed 2 hours ago

lukesnyder01 commented 2 hours ago

Godot thinks used_cells is a Callable, but it should be an array.

lukesnyder01 commented 2 hours ago

It was an easy fix. many analogous function in TileMapLayer lose layer index arguments. Before, I was calling get_used_cells(0), and I accidentally changed it to get_used_cells. So, I was storing the function in used_cells, rather than actually calling the function with get_used_cells().