Skip to content

Creating a Level

This content is not available in your language yet.

  1. Create a new scene by clicking the + button in the scene tabs. Add a 2D Scene and rename it Level1.

  2. Click and drag your Player scene from the FileSystem into the Level1 Scene Node Tree as a child of Level1.

  3. Add a TileMapLayer node as a child of Level1. Rename this to Foreground and create a new Tile Set using the Inspector. This should open 2 new menus at the bottom of the screen, a TileSet menu and a TileMap menu. Screenshot showing TileSet and Tilemap menus

  4. Inside the TileSet menu, click the + button and select “Atlas”.

  5. Navigate to the world_tileset.png image in the sprites folder and load that. You will be asked if Godot can automatically create tiles, select yes.

  6. Click the “TileSet” button in the inspector. Go to the “Physics Layers” drop down and click the “Add Element” button. Screenshot showing physics layer add element

  7. Move back to the TileSet menu. Click the Paint button and then click the drop down that appears and select “Physics Layer 0”.

  8. Click on some of the square platforms and they should be given a blue collision box. It will look highlighted on the Base Tiles sections. Screenshot showing TileMap collision boxes

  9. Now open the TileMap menu at the bottom of the screen and click on a tile to enable drawing in the editor. You can click to place individual tiles, or click and drag to paint them following the cursor. Play around with the tile paint tools to create a fun level to play. Some cool things to check out are the Rect tool and the Place Random Tile options.

  10. Add a new TileMapLayer as a child of Level1 and place it above Foreground in the Scene Tree and rename it Background. Screenshot showing scene tree

  11. Repeat the steps used for the Foreground (ignoring the physics steps) to create your Background.

Contribute Donate