How to have a KinematicBody2D autotile the world as it moves?

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

Hi, I’m wanting to have the player of my game autotile the world as they walk around.

I’ve set up an autotile in a tileset of a tilemap and I assumed after I had a bitmasked autotile working I could do so with something like:

and I can tell something is actually being created in the world, as if I add the line “print(CurrentTileIndex)” and run around, the numbers are what I’d expect, but no tiles are appearing. So I clearly have no idea what the tilemap methods actually do, and the documentation isn’t making much sense to me. I’d greatly appreciate some insight into how to do this!

what about having them invisible and disable the collision of them and when the player is at the position where you want them to appear return the visibility on and the collision

mdubaisi | 2020-08-14 10:11