• Projects
  • Using the tile map editor in Game

Hi, I want to make a game similar to rimworld. I thought it would be easier to just use the already existing tile map editor rather than code everything from scratch. Can this be done? Or else does anyone have any suggestions on how to get it done?

Thanks in advance.

@Anderoo99 said: Hi, I want to make a game similar to rimworld. I thought it would be easier to just use the already existing tile map editor rather than code everything from scratch. Can this be done? Or else does anyone have any suggestions on how to get it done?

Thanks in advance.

I want to build walls by clicking on the grid in game.

You can use a Tilemap node for 2D and set the tiles using the set_cellv function. Here's a Reddit post where someone posted the code they used.

For 3D worlds, you might be able to use the GridMap node and use the set_cell_item function. Here is a link to the documentation for the set_cell_item function.

Hopefully this helps!

@TwistedTwigleg said: You can use a Tilemap node for 2D and set the tiles using the set_cellv function. Here's a Reddit post where someone posted the code they used.

For 3D worlds, you might be able to use the GridMap node and use the set_cell_item function. Here is a link to the documentation for the set_cell_item function.

Hopefully this helps!

@TwistedTwigleg said: You can use a Tilemap node for 2D and set the tiles using the set_cellv function. Here's a Reddit post where someone posted the code they used.

For 3D worlds, you might be able to use the GridMap node and use the set_cell_item function. Here is a link to the documentation for the set_cell_item function.

Hopefully this helps!

Hey, thanks for the reply, will check it out and update as soon as I get home.