Workshop - Step 10

# Step 10: Building up a door

| Overview
| Realization

Overview

### Overview

We want to build up a door in one sector. The door opens and closes when pressing space in front of the door. You won't need any key for it.

Realization

### Realization

Please open the sector window. change to sector 1, e. g. using CTRL+E.

We want to create a door within the yellow circle. Change to the edit mode for doors and lifts. You can reach this mode using the menues [Edit] [Doors and lifts], the key F3 or by clicking within the sector window with the right mousebutton.

Please create the four points for the door by holding down the SHIFT key and setting the points with the left mousebutton. The sequence of the creation doesn't matter (for now).

All points are created within the wall lines exactly, because the snap was activated. Ok.

Now you have to mark all points. Holding down the left mousebutton move to all four points. Attention: You have to mark the points anticlockwise. The line between the first and the second marked points must be a doorline, which the player can see. So you have two possibilities for the first point: The upper left or the lower right point. Mark the other three points now anticlockwise. You get:

Change to the popup menu by clicking with the right mousebutton within the sector window. A popup menu appears. Now create a door by selecting Create door. The marked points keep marked (selected). Just click with the left mousebutton within the sector window to deselect the four points. You must have a window like this:

As you can see, there is the former first selected point marked with a small circle. This is for your survey.

Now we want to set the attributes for the door. For that we have to select (mark) the lines of the door. Hold down the CTRL key and select the lines (of the door) with the left mousebutton. There are selected all four lines of a door at one time. Call the popup menu for doors and lifts with the right mousebutton. Select the menu entry Edit attributes.

We make the following changes:

- The walls beside the door do have a floor height of 128, a relative height of 80. The door should have the same height as the walls, so we have to set the Relative height at all to 80. The lower edge of the door now moves from 128 (closed) to - let's say - 200 (opened). Set Height opened to 200 and Height closed to 128. As a maximum it would be possible to set 206 instead of 200. 208 is not possible - the door would be 0 pixel when it's opened. Remember: Values for the height must be even!
- The door should be 4 seconds remain in the open state. Multiplied with 50 VBL per second we enter 200 for Time of status open (in VBL) in the dialog.
- There is no key or any other item required to open and close the door. Let's remain Static item for Required item to open and close.
- Choose from the predefined textures the entry Door 64x80 and set the values by clicking on the button Apply.
- The value of Color of platform will be set to 1.
- The value for the color of the height must be the same as it was defined for the walls within this room. Enter a 2 in the field #1 and click on the button All the same.

Check the entries using the upper screenshots. Close the dialog with the button OK.

The points of the door remain exactly on the lines of the walls. This must be changed. The upper two points of the door must be moved one pixel down, the lower two points of the door must be moved one pixel up. For that select the upper two points of the door and select Move points (down +1) from the popup menu. Do so with the lower two points, too. But please move them one pixel up (not down).

That's it. Using the preview you can check the sector. You can display a preview with an opened or closed door.

Back | Home | Info | Concepts | Workshop | Reference | Next