Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to Godot 4.3 (TileMapLayer) #136

Open
DinoMC opened this issue Jul 9, 2024 · 2 comments
Open

Update to Godot 4.3 (TileMapLayer) #136

DinoMC opened this issue Jul 9, 2024 · 2 comments
Labels
✨ enhancement New feature or request

Comments

@DinoMC
Copy link

DinoMC commented Jul 9, 2024

I know 4.3 isn't out yet but is there currently a way I can assign a TileMapLayer node to a generator rather than a Tilemap node? Couldn't find any info about this

@BenjaTK
Copy link
Owner

BenjaTK commented Jul 9, 2024

That's coming as soon as 4.3 is released fully.

@BenjaTK BenjaTK added the ✨ enhancement New feature or request label Jul 9, 2024
@BenjaTK BenjaTK changed the title TileMapLayer / Godot 4.3 compatibility ? Update to Godot 4.3 (TileMapLayer) Jul 9, 2024
@DinoMC
Copy link
Author

DinoMC commented Jul 9, 2024

Thanks!
In the meantime, if anyone else looking for info land on this issue, I managed to get all demos to work with a few changes to gaea/renderers/2D/tilemap_gaea_renderer.gd :

Changes the following lines (currently 10, 39-40, 53, 64):

@export var tile_map: TileMap :
...
for l in range(tile_map.get_layers_count()):
	tile_map.call_thread_safe("erase_cell", l, Vector2i(x, y))
...
tile_info.tilemap_layer, tile, tile_info.source_id,
...
tile_info.tilemap_layer, terrains[tile_info],

To :

@export var tile_map: TileMapLayer :
...
#for l in range(tile_map.get_layers_count()):
	tile_map.call_thread_safe("erase_cell", Vector2i(x, y))
...
tile, tile_info.source_id,
...
terrains[tile_info],

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants