On September 14th, 2017, we published revised versions of our Privacy Policy, Terms of Service and Website Use Policy and published a Cookie Policy. Your continued use of Lynda.com means you agree to these revised documents, so please take a few minutes to read and understand them.

Add collisions

- [Instructor] Now it's time for us to customize…our tile map editor.…A big part of level design is building the tools you need…in order to be able to lay out the level.…We're going to go ahead and modify…the existing tile map editor,…to add in support for adding box colliders…to each of the tiles we paint.…Let's go ahead and search for the right class we'll need.…Simply type in TileMapEditor,…and select the TileMapEditor C# script…by double-clicking on it.…

This is going to open up MonoDevelop for us.…This class manages the custom editor we see inside of Unity…when we're working with TileMapEditor.…We're going to add a checkbox…so that we can tell whether a tile is solid or not…when we go to paint it.…First, we're going to need to add a field to store this value.…We're going to make this private and set it as a boolean,…and call it solidFlag.…By default, this is going to be set to false.…

Now let's scroll down and take a look…at where we set the Pixels to Units value.…Underneath this, we're going to add our new checkbox.…

Resume Transcript Auto-Scroll

Author

Released

12/14/2016

Learn the basics of level design in Unity 5 2D. Exciting, engaging level designs are what make for great gameplay. This course focuses on designing levels that challenge your players by including puzzles, monsters, player flow, and balancing. Jesse Freeman shows how to build a basic level with multiple layers, and trick it out with doors and push blocks, switches, time limits, and enemies. You'll learn techniques to challenge the players and move them through the level in an organic way, and build tools that help you further your design. Use the exercise files included with the course to continue to build the game and make it your own.