#Tilemap usage from code
4 messages · Page 1 of 1 (latest)
The docs are a great resource for things like this: https://docs.godotengine.org/en/stable/classes/class_tilemap.html#class-tilemap-method-set-cell
Try tilemap.set_cell(the layer you want to set the cell on (probably 0 if you only have one layer), the coordinates (as Vector2i), the source ID of the TileSetSource (these are the things that store the images) (also probably 0 if you only have a single source), the coordinates of the tile from the tile set source)
Godot Engine documentation
Inherits: Node2D< CanvasItem< Node< Object Node for 2D tile-based maps. Description: Node for 2D tile-based maps. Tilemaps use a TileSet which contain a list of tiles which are used to create grid-...
I fixed this now.