Difference between revisions of "Making a teleporter"

From DoomWiki.org

[unchecked revision][checked revision]
(Undo revision 63897 by 80.192.137.2 (talk))
m (Some compression)
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
1: Create teleport destination thing and make it face correct way.
+
[[File:Teleporter-diagram1.png|frame|Editor view of the teleporter. '''A''' marks the pad itself, and '''B''' marks the destination.]]
  
2: Create teleporter sectors.
+
[[Teleporter]]s are a memorable feature of the Doom engine, with much potential for a creative designer. This tutorial will guide you through building a basic teleporter, and assumes that you know how to use the basic functions of a map editor, namely creating and editing [[sectors]], [[linedefs]], and [[things]].
  
3: Select the linedefs on the sides and flip them with the flip linedefs button.
+
To create a basic teleporter for [[vanilla Doom]], you need two main elements - the pad and the destination.
(F) (DooM Builder)
 
  
4: Select the four linedefs and give them line action 97: Teleport WR and the next unused tag. (We'll use 2.)
+
==Teleport pad==
 +
First, you need the teleporter itself, marked with '''A''' on the diagram. Technically, what you need to worry about are the linedefs of the pad, but in most cases, you will style the pad itself to help signify its purpose.
  
5: Enter sectors mode and add tag 2 (or your tag you used in the previous step) to the destination sector and add sector type 8: Light glows (1+ sec).
+
So, set up a bare room in your map editor, at least 192 by 320 units. For the teleport pad, put a square 64 by 64 sector in one half of the room (red in the image). [[Linedef_type#Teleporters|Teleport linedef types]] only work when passing from the linedef's ''front'' side, so make sure that all four sides of the pad are facing outward. Next, edit these linedefs, and give them a type, in this case number '''97''' ("Walk repeatable: teleport"), which is a normal teleport. Also set their [[Tag|tags]] to an unused number which will correspond to the destination sector.
  
6: Edit the teleport to be pretty and so.
+
==Teleport destination==
{{editing index}}
+
After setting up the lines of the teleporter, you need the spot for the player to warp into, marked with '''B''' on the diagram. This consists of a properly tagged sector, and a teleport destination (thing 14) within that sector.  
  
 +
A good way to start is by placing the teleport destination. The destination thing's position is the exact spot in that sector that the player will arrive, and the thing's angle determines where the player will face, so set both accordingly. In the diagram, the thing is green.
 +
 +
Almost any sector can contain a teleport destination, but each sector should only have one, because the sector's tag is what the teleporter type looks for. You can simply use the main sector surrounding the teleport, but in the diagram, there is a new circular sector (in yellow) for the purpose. In either case, set the chosen sector's tag to match the teleport linedefs' tag which you set above.
 +
 +
==Aesthetics and other uses==
 +
You should now have a functional teleporter. To make it actually stand out as such though, it could use some detailing. Try giving the pad a suitable floor [[flat]]. The GATE1 – GATE4 flats work well, as do others like FLAT22 and TLITE6_x. If you did not while building it, ensure that the pad sector is aligned to the 64 by 64 grid, or else most flats will look misaligned. Raise (or lower) the floor, and add the missing lower textures, to give it some depth. A popular effect is to increase the brightness on the pad, and if you are frisky, you can add a flashing or glowing sector effect too.
 +
 +
===Further ideas===
 +
You can also easily modify this method to create other teleporter effects.
 +
 +
* For example, you can change the teleporter linedef types to number '''52''', which finishes the level when crossed. Similarly, type number '''124''' warps to a secret level.
 +
 +
* Instead, you can set each line's sector tags to teleport you to different sectors depending on which side you cross. [[E3M5: Unholy Cathedral (Doom)]] did this in the courtyard.
 +
 +
* There are also monster-only teleport types (numbers '''125''' and '''126'''), so it is possible to move only your enemies around the map, instead of players. [[MAP08: Tricks and Traps (Doom II)]] and [[E4M1: Hell Beneath (Doom)]] have many examples.
 +
 +
* Rather than using a pad at all, you could set the teleport type on any linedef, which can serve to disorient the player if they do not anticipate the teleport. Combining this technique with monster-only teleporters is one way to create effects like the teleporter ambush in [[E1M9: Military Base (Doom)]].
 +
 +
==Example==
 +
To see these above ideas in practice, an example WAD demonstrating various teleporter functions is available [[:File:Teleport.wad|here.]]
 +
 +
<br>
 +
*''[[Editing:Index|Back to the editing index]]''
 
[[Category:Basic level editing]]
 
[[Category:Basic level editing]]

Revision as of 14:40, 11 September 2012

Editor view of the teleporter. A marks the pad itself, and B marks the destination.

Teleporters are a memorable feature of the Doom engine, with much potential for a creative designer. This tutorial will guide you through building a basic teleporter, and assumes that you know how to use the basic functions of a map editor, namely creating and editing sectors, linedefs, and things.

To create a basic teleporter for vanilla Doom, you need two main elements - the pad and the destination.

Teleport pad

First, you need the teleporter itself, marked with A on the diagram. Technically, what you need to worry about are the linedefs of the pad, but in most cases, you will style the pad itself to help signify its purpose.

So, set up a bare room in your map editor, at least 192 by 320 units. For the teleport pad, put a square 64 by 64 sector in one half of the room (red in the image). Teleport linedef types only work when passing from the linedef's front side, so make sure that all four sides of the pad are facing outward. Next, edit these linedefs, and give them a type, in this case number 97 ("Walk repeatable: teleport"), which is a normal teleport. Also set their tags to an unused number which will correspond to the destination sector.

Teleport destination

After setting up the lines of the teleporter, you need the spot for the player to warp into, marked with B on the diagram. This consists of a properly tagged sector, and a teleport destination (thing 14) within that sector.

A good way to start is by placing the teleport destination. The destination thing's position is the exact spot in that sector that the player will arrive, and the thing's angle determines where the player will face, so set both accordingly. In the diagram, the thing is green.

Almost any sector can contain a teleport destination, but each sector should only have one, because the sector's tag is what the teleporter type looks for. You can simply use the main sector surrounding the teleport, but in the diagram, there is a new circular sector (in yellow) for the purpose. In either case, set the chosen sector's tag to match the teleport linedefs' tag which you set above.

Aesthetics and other uses

You should now have a functional teleporter. To make it actually stand out as such though, it could use some detailing. Try giving the pad a suitable floor flat. The GATE1 – GATE4 flats work well, as do others like FLAT22 and TLITE6_x. If you did not while building it, ensure that the pad sector is aligned to the 64 by 64 grid, or else most flats will look misaligned. Raise (or lower) the floor, and add the missing lower textures, to give it some depth. A popular effect is to increase the brightness on the pad, and if you are frisky, you can add a flashing or glowing sector effect too.

Further ideas

You can also easily modify this method to create other teleporter effects.

  • For example, you can change the teleporter linedef types to number 52, which finishes the level when crossed. Similarly, type number 124 warps to a secret level.
  • Instead, you can set each line's sector tags to teleport you to different sectors depending on which side you cross. E3M5: Unholy Cathedral (Doom) did this in the courtyard.
  • Rather than using a pad at all, you could set the teleport type on any linedef, which can serve to disorient the player if they do not anticipate the teleport. Combining this technique with monster-only teleporters is one way to create effects like the teleporter ambush in E1M9: Military Base (Doom).

Example

To see these above ideas in practice, an example WAD demonstrating various teleporter functions is available here.