diff --git a/tutorial_tilemap.md b/tutorial_tilemap.md index 536892e..c6aa9ea 100644 --- a/tutorial_tilemap.md +++ b/tutorial_tilemap.md @@ -35,6 +35,23 @@ Sounds like a lot of requirements, so here's a screenshot that shows where every

+Continue adding all the tiles, adjust the offsets if needed (if you use multiple tiles in a single image) unless there is a sprite per each tile. Again, as always, remember they have to be centered and their names must be unique. + +

+ +###Collision + +To add collision to a tile, create a StaticBody2D child for each sprite. This is a static collision node. Then, as a child of the StaticBody2D, create a CollisionShape2D or CollisionPolygon. The later is recommended because it's easier to edit: + +

+ +Finally, edit the polygon, this will give the tile a collision. **Remember to use snap!**. Using snap will make sure collision polygons are aligned properly, allowing a character to walk seamlessly from tile to tile. + +

+ +Keep adding collisions to tiles untile we are done. Note that BG is just a BG so we don't care about it. + +