June 2018
Beginner to intermediate
298 pages
7h 38m
English
Create a new scene and add a Node2D named Level. Save the scene in a new folder called levels. This is where you'll save any other levels you create, after inheriting from Level.tscn. The node hierarchy will be the same for all levels—only the layout will be different.
Next, add a TileMap and set its Cell/Size to (16, 16), then duplicate it three times (press Ctrl + D to duplicate a node). These will be the layers of your level, holding different tiles and information about the layout. Name the four TileMap instances as follows and drag-and-drop the corresponding TileSet into the Tile Set property of each. Refer to the following table:
| TileMap | Tile Set |
| World | tiles_world.tres |
| Objects | tiles_items.tres |
| Pickups | tiles_items.tres ... |
Read now
Unlock full access