From the course: Unity 5: 2D Level Design

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Create a door

Create a door - Unity Tutorial

From the course: Unity 5: 2D Level Design

Start my 1-month free trial

Create a door

- [Instructor] Now it's time for us to look at ways that we can slow the player down as they move around through the map. One of the easiest solutions is to place a door that limits the player's access from the left-hand side of the map to the right-hand side of the map. We have a natural place to put this door going from room two into room three. To do this, first let's move the alien out of room three and put them into the final room. Next, if we go into the JetroidLevelDesign folder and into Artwork, then into obstacles, you'll see that we have door sprites. Let's select all the sprites and drag them into our scene. We're going to create a new folder inside of our JetroidLevelDesign and we're going to call this Animations. Next, let's call this DoorOpenAnimation and save it into the folder. Next, we're going to want to open up the Animation and Animator windows. You can find them in the Window menu. We'll start with the Animation and drag it to the bottom of the screen. Next, let's…

Contents