Difference between revisions of "Making a teleporter"

From DoomWiki.org

[unchecked revision][checked revision]
m (removed contractions, correct level number for Military Base)
m (Checked, it's a good one. (Linedef actions --> types, just for clarity))
Line 3: Line 3:
 
[[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]].
 
[[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]].
  
To create a basic teleporter for vanilla Doom, you need two main elements:
+
To create a basic teleporter for [[vanilla Doom]], you need two main elements - the pad and the destination.
  
 
==Teleport pad==
 
==Teleport pad==
First, you need the teleporter itself. ('''Marked 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.
+
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). [[Linedef_type#Teleporters|Teleport linedef actions]] only work when passing from the front side, so make sure that all four sides of the pad are facing outward. Next, edit these linedefs, and give them a teleport action, in this case number '''97 - (Teleport WR)''', which is a normal repeatable teleport. Also set their tags to an unused number which will correspond to the destination sector.
+
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.
  
 
==Teleport destination==
 
==Teleport destination==
After setting up the lines of the teleporter, you need the spot for the player to warp into ('''Marked B''' on the diagram). This consists of a properly tagged sector, and a teleport destination ('''Thing 14''') within that sector.  
+
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 ('''green''' in the image).
+
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 action looks for. You can simply use the main sector surrounding the teleport, but for the diagram I created 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.
+
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 for the diagram that was created, 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==
 
==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. 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.
+
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===
 
===Further ideas===
 
You can also easily modify this method to create other teleporter effects.  
 
You can also easily modify this method to create other teleporter effects.  
  
* For example, you can change the teleporter linedef actions to number '''52''', which finishes the level when crossed. Similarly, action number '''124''' warps to a secret level.
+
* 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)|E3M5]] of Doom did this in the courtyard.)
+
* 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 actions (numbers '''125''' & '''126'''), so it's possible to move only your enemies around the map, instead of players.
+
* 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 action 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)|E1M9: Military Base]].
+
* 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==
 
==Example==
 
To see these above ideas in practice, an example WAD demonstrating various teleporter functions is available [[:File:Teleport.wad|here.]]
 
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:20, 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 for the diagram that was created, 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.