9
\$\begingroup\$

I am completely new to Godot Engine, and quite an amateur in game development, in general. I have a small project where I want to implement a procedurally generated level, and for that I'd like to be able to programmatically place tiles. I'm thinking about something like in this video for GameMaker, however, I haven't found a documented way to do that for Godot.

Does Godot support programmatically laying tiles, and if so, how?

\$\endgroup\$
11
\$\begingroup\$

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

\$\endgroup\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .