Workshop - Step 4

# Sector fields - part III

3rd sector

### Sector fields within the third sector

Ok, let's change using the F2 key to the edit mode for sector fields. We start with the sector field for the box. Create all four points for this sector field. Remember to create the rectangle a little bit greater (16 pixel difference) than the top of the box. Select again all four sector field points, call the popup menu and create a new sector field:

Before editing the sector field we have to do some calculations: The box has a floor height of 96 pixel. The walls of the box do have a height of 64 pixel. So the top of the box has a (walking) height of 160. The room has a height of 80, the stairs have a height of 32 (downstairs). This means, that the room part, where the box stands, has a height of 112. So at all we have a height of 48 pixel above the top of the box. We can define the sector field:

STOP: We mentioned before, that a player only can walk within a sector field, if its room height is more or equal to 52 pixel. So we have to delete the sector field. The player cannot stand on the top of the box. For that please select (mark) the lines of the sector field (using CTRL and the left mousebutton), call the popup menu and delete (clear) the sector field. The four points still remain - we will need them later on.

The floor height (room part with the box) is 96. The room height within this part is 112 (80 pixel walls outside plus 32 pixel stairs). Please create the need points and then the sector fields itself (lines):

We think, the rest of the sector fields is no problem anymore. The floor height is 128, the room height 80. Do not forget to create a sector field which covers a sector field of sector 1 and set the attributes to a sector changing sector field.

Visibility

### Visibility of sectors

There's still an important topic: When creating a sector changing sector field the sector to change to automatically becomes visible from the current sector. We have done so within sector 2 - we created a sector changing sector field to sector 1. So sector 1 becomes visible from sector 2. But there's also visible sector 0 from sector 2. Because there's no direct connection between sector 2 and 0 (using sector fields), we have to define the visibility attribut of sector 0 somewhere else:

Call the popup menu (remember: no points or lines must be selected): [Visibility].

In the dialog you can set several sector to be visible from the current sector. From sector 2 sector 0 is visible. So please insert a 0. Sector 1 also is visible from sector 2, but sector 1 becomes visible because there's a sector changing sector field in sector 2 which points to sector 1.

Do not forget to make the same changes within sector 0: Go to sector 0 and set sector 2 to be visible from sector 0.

Using the CTRL-A key the sector must look like the following screenshot shows:

### Yeah, we now have done most parts of the level structure.

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

@