Skip to main content
suggested edit fixed a broken link, but resulting versions were inconsistent; I changed edit to point to version at time of posting + links to current info
Source Link
Pikalek
  • 13.4k
  • 5
  • 49
  • 54

You can programmatically set a cell in the TileMapTileMap class by using the set_cellset_cell function.

Note: if you're new to an engine & game dev in general, I highly recommend working through any of the tutorial information provided; I happened to come across the the link to the TileMap class in:

2d Tutorials -> Graphics -> Using TileMapsUsing TileMaps

Note: the above was for the 3.x version of Godot.
Information for the current/stable version can be found here or by changing the version in the lower left hand corner:

screenshot drawing attention to version

You can programmatically set a cell in the TileMap class by using the set_cell function.

Note: if you're new to an engine & game dev in general, I highly recommend working through any of the tutorial information provided; I happened to come across the the link to the TileMap class in:

2d Tutorials -> Graphics -> Using TileMaps

You can programmatically set a cell in the TileMap class by using the set_cell function.

Note: if you're new to an engine & game dev in general, I highly recommend working through any of the tutorial information provided; I happened to come across the the link to the TileMap class in:

2d Tutorials -> Graphics -> Using TileMaps

Note: the above was for the 3.x version of Godot.
Information for the current/stable version can be found here or by changing the version in the lower left hand corner:

screenshot drawing attention to version

Link changed for set_cell updating link so the information is correct.
Source Link

You can programmatically set a cell in the TileMap class by using the set_cellset_cell function.

Note: if you're new to an engine & game dev in general, I highly recommend working through any of the tutorial information provided; I happened to come across the the link to the TileMap class in:

2d Tutorials -> Graphics -> Using TileMaps

You can programmatically set a cell in the TileMap class by using the set_cell function.

Note: if you're new to an engine & game dev in general, I highly recommend working through any of the tutorial information provided; I happened to come across the the link to the TileMap class in:

2d Tutorials -> Graphics -> Using TileMaps

You can programmatically set a cell in the TileMap class by using the set_cell function.

Note: if you're new to an engine & game dev in general, I highly recommend working through any of the tutorial information provided; I happened to come across the the link to the TileMap class in:

2d Tutorials -> Graphics -> Using TileMaps

Source Link
Pikalek
  • 13.4k
  • 5
  • 49
  • 54

You can programmatically set a cell in the TileMap class by using the set_cell function.

Note: if you're new to an engine & game dev in general, I highly recommend working through any of the tutorial information provided; I happened to come across the the link to the TileMap class in:

2d Tutorials -> Graphics -> Using TileMaps