This door opens horizontally like on Star Trek, which is why it was given the name "Star Trek Door". It opens reasonably fast and the texture 'squishes' into the wall when the door opens. There is no way around this texture 'squishing', so if it really bugs you just make a sliding door. After seeing how complex sliding doors are, I don't think you'll have a problem with the texture squishing.
Begin by making your door sector.
Insert three vertices on both sides of the door sector. They are color-coded so you know where they end up after moving them. It makes things a lot easier this way. I am aware that there are two yellow vertices, they are the same color because they will be overlapped in the next step.
Move the vertices to their appropriate places as shown here. The blue and aqua vertices will be side by side on the top red line of the door sector. The two yellow vertices will overlap in the middle of the door sector. The purple and green vertices will be side by side on the bottom red line of the door sector.
Place an M[0,Sound]
(Sp[0,Speed], S[Delay,10]) in one of the little triangles. I recommend M[0,259]
. It's probably best to place the sprite in 2D mode, then switch to 3D mode so you can change the sprite to an M
and edit it's tag values. Right now your door should look a little bit like this (it still has to be textured):
You can texture your door however you like. To make the door work, we have to give the door sector a Lo-Tag. Go into 2D mode and point the cursor at one of the little triangles. Press T
. Tag the door sector [0,9]
(The triangles are part of the door sector). Your finished door should look something like this, except it will have the textures you chose for it.
Now your door opens and closes in the game! For some reason, the door's sound effect will play twice (it's a bug). If the door's sound effect annoys you, just make all of your star trek doors silent.