Welcome back to game programming with Godot Engine and after many months of disappearance, this Tutorial will now be continued both on the anonyviet website and youtube DeathGM ^^.
| Join the channel Telegram belong to AnonyViet 👉 Link 👈 |
Without further ado, let’s get started.
Download Asset
First we need a tileset and you can go to this link to download: 2D Pixel Art Forest Tileset
![[Godot RPG] #4 : Tilemap 17 [Godot RPG] #4 : Tilemap 16](https://anonyviet.com/wp-content/uploads/2021/02/16-02-2021-10-32-00.png)
Please go to Download to download for those who are poor at English -_-.
After downloading, put it in the game here and I will put it in the folder that will contain your Art.
![[Godot RPG] #4 : Tilemap 18 [Godot RPG] #4 : Tilemap 17](https://anonyviet.com/wp-content/uploads/2021/02/16-02-2021-10-32-15.png)
Create Tilemap
Create Tilemap Node
First, add the Tilemap button.
![[Godot RPG] #4 : Tilemap 19 [Godot RPG] #4 : Tilemap 18](https://anonyviet.com/wp-content/uploads/2021/02/16-02-2021-10-35-56.png)
Then in the Line Inspector panel Tileset In the empty box, click and select New Tileset.
![[Godot RPG] #4 : Tilemap 20 [Godot RPG] #4 : Tilemap 19](https://anonyviet.com/wp-content/uploads/2021/02/16-02-2021-10-35-11.png)
Add Texture to Tileset
Let’s add a new Texture to the Tileset. Click on the image below to add it.
![[Godot RPG] #4 : Tilemap 21 [Godot RPG] #4 : Tilemap 20](https://anonyviet.com/wp-content/uploads/2021/02/16-02-2021-10-47-59.png)
Then select the tileset we downloaded above.
![[Godot RPG] #4 : Tilemap 22 [Godot RPG] #4 : Tilemap 21](https://anonyviet.com/wp-content/uploads/2021/02/16-02-2021-10-48-44.png)
Create Tiles
Next we will create tiles. Here, Atlas is wrong, not AutoTile. I will have a tutorial on Autotile later.-.
Click on New Atlas and select the grid icon to display the grid.
![[Godot RPG] #4 : Tilemap 23 [Godot RPG] #4 : Tilemap 22](https://anonyviet.com/wp-content/uploads/2021/02/16-02-2021-10-53-44.png)
Here, my tile size is 32×32, which fits the grid size, so there is no need to adjust it. If it doesn’t fit, you need to adjust it, which is usually the case.
You drag the tiles you need to use. Here I will drag the first 6 tiles
![[Godot RPG] #4 : Tilemap 24 [Godot RPG] #4 : Tilemap 23](https://anonyviet.com/wp-content/uploads/2021/02/16-02-2021-10-59-21.png)
That’s it, the next step is to go outside and place the tiles.
Set Tiles
Click on the tilemap, then on the right panel, the Atlas we just created will appear, then click to select the tile to place.
You will notice that when placing tiles, it is quite like c*c .-. So we need to resize the tilemap node to match the size of the tileset, which is 32×32.
![[Godot RPG] #4 : Tilemap 25 [Godot RPG] #4 : Tilemap 24](https://anonyviet.com/wp-content/uploads/2021/02/16-02-2021-11-00-37.png)
Please go to Cell and adjust from 64×64 to 32×32.
=> ![[Godot RPG] #4 : Tilemap 27 [Godot RPG] #4 : Tilemap 26](https://anonyviet.com/wp-content/uploads/2021/02/16-02-2021-11-05-09.png)
And now it’s time to put the tiles down and decorate
And this is after I trimmed it a bit, it’s ok but quite extreme. I will write about Autotile and Godot in a separate article. Let’s rewrite it, but there was a tilemap article a while ago because my knowledge was still limited so I wrote a lot of mistakes
![[Godot RPG] #4 : Tilemap [Godot RPG] #4 : Tilemap](https://anonyviet.com/wp-content/uploads/2021/02/16-02-2021-11-26-35.png)
Summary
So that’s the end of lesson 4 of creating a Tilemap for your RPG game with Godot Engine. See you later.
Frequently asked questions
What resources do I need to download to get started?
You need to load a tileset. The article provides a download link to a 2D pixel art forest tileset.
How to add texture to Tileset in Godot?
After creating a Tilemap Node, in the Inspector, in the Tileset section, click “New Tileset”. Then, add texture by clicking the image button and selecting the downloaded tileset file.
How should the Tile Size (Cell Size) be set?
Tile size should match the size of the image in the tileset. In this example, the size is 32×32 pixels.






