O'Reilly logo

Unity 5.x 2D Game Development Blueprints by Abdelrahman Saher, Francesco Sapio

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Building a cool level

Now that we have the character fully animated and controllable, it's time to build a cool level to let him move in. In order to organize the level, we can follow these steps:

  1. Delete both Floor_1 and Floor game objects (since we start from scratch).
  2. Create two new objects, Level and Floors_1. Reset their position (all zeros) and scale (all ones).
  3. Create a Floor_1 game object from the tile we want to use. Furthermore, set its scale to (2.15,2,1). Finally, add a Box Collider 2D.
  4. Parent them to each other in the following order: Floor | Floors_1 | Floor_1, as shown in the following image:

    Building a cool level

    This is what the Inspector should look like: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required