home *** CD-ROM | disk | FTP | other *** search
/ Nuke It 1000 / NUKEIT1000.ISO / faqmap / door23.txt < prev    next >
Text File  |  1996-05-17  |  2KB  |  47 lines

  1. =====================================================================
  2.                  *** Tempest's BUILD Tutorial ***
  3.                Lesson 3 : Making swinging doors
  4. =====================================================================
  5. Purpose:
  6.    A tutorial on swinging doors in Duke Nukem 3D using Build.
  7.  
  8. Step 1:
  9.    Make a door opening. Choose some cool textures.
  10.  
  11. Step 2:
  12.    Now create a sector that is to be used as the door.
  13.    Notice that the door sector is not connected to any other sector.
  14.  
  15. Step 3:
  16.    Move the door sector into position. Notice that the vertices of
  17.    the door will not connect to the vertices of the wall. Make
  18.    sure they aren't connected by moving the vertices around.
  19.  
  20. Step 4:
  21.    Give the door sector a Lo-tag value of 23. Now comes the crucial
  22.    part. You will have to define a pivot point that the door will turn 
  23.    around. Create a sector effector sprite (sprite #2) and put it in 
  24.    a logical place. Remember that the door sector must rotate around 
  25.    the sector effector. The SE (Sector Effector) MUST BE INSIDE THE
  26.    DOOR SECTOR!!! Do not put the SE on a door vertex, but near it.
  27.    Undo grid locking by pressing 'L' in 2D-mode and move the SE as
  28.    close as possible to a door vertex without going outside the door
  29.    sector. If you want the door to open clockwise, make the SE point
  30.    downwards. If the door needs to open counter-clockwise, make the
  31.    SE point upwards. Use the < and > keys to rotate the sprite.
  32.    That's it! You now have a swinging door! Add a Music & SFX sprite
  33.    (sprite #5) for door sounds. In this example I made the M&SFX
  34.    sprite Lo-tag and Hi-Tag values of 165. (Change the Lo-tag value
  35.    by pressing 'Alt-T'. Use 'Alt-H' for changing the Hi-Tag value).
  36.  
  37. NB: 
  38.    Your door is initially placed inside some sector. You must take
  39.    care that the door stays inside this sector, even when opened!
  40.    You will get strange effects when your door opens onto another
  41.    sector than the one it was originally placed in. Beware!!!
  42.  
  43. =====================================================================
  44.  Cho Yan Wong (aka Tempest)
  45.  pwong@pobox.leidenuniv.nl
  46.  http://www.wi.leidenuniv.nl/~cwong/myindex.html 
  47. =====================================================================