How can I do chunk loading?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By jujumumu

How can I do chunk loading? I have a 2d world with a lot of tiles. My theory for chunk loading is that for each chunk you instance a tile map and then to unload it you call queue free. Is this how it works?

The Godot tile map has a pseudo-chunk loading thing built in that might help.

Merlin1846 | 2020-04-15 05:17

:bust_in_silhouette: Reply From: snk

It’s pretty much how it works yes. Don’t forget to do all your runtime scene tree manipulations inside a call_deffered() .

Ok Thanks!! Now I have confidence to continue with this method.

jujumumu | 2020-03-01 00:00

Wait, whats the point of instancing a chunk then calling queue free every time. Why can’t I just set the tile in the tilemap to the tile and to unload it just set it to be empty?

jujumumu | 2020-03-01 06:49

That may be more difficult. And slower.

Merlin1846 | 2020-12-04 00:39