City 14 City 14
September 05, 2010, 12:30:02 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Advertise us! If you bring in members you get good karma!
 
  Home City 14   Forum   Help Calendar Login Register Episodes Comic  

Recent

UserInfo

Members
Stats
  • Total Posts: 4495
  • Total Topics: 356
  • Online Today: 4
  • Online Ever: 148
  • (August 26, 2009, 03:51:09 pm)
Users Online
  • Users: 0
  • Guests: 4
  • Total: 4

Permanent?
* *

Pages: [1]   Go Down
  Print  
Author Topic: Adding a second floor  (Read 104 times)
God


Benefactor

*
Super Combine

Karma: +9009/-4
Posts: 9,759


View Profile WWW ConnorHollis
« on: June 12, 2010, 07:07:57 pm »

Hello and welcome to the adding two floors tutorial on city 14.

You will learn how to increase the size of the sky and how to add different floors and staircases to your maps.

We will start on a normal map. Remove the props if you're using a map from a previous tutorial.



On this map we will need a simple white light with a brightness of 200. This means that the red green and blue values are all at 255. So from within your light properties menu change the brightness value to 255 255 255 200. Here's an example picture:



Once you have completed that you can scatter lights around the map, perhaps four would do, that will keep the map well lit on both levels. You may also choose to add more lights when you add the second level. You can select the lights and then hold shift and drag the light, this will copy the light. You can use this trick with any items. This includes brushes and entities. Here's an example of four lights.



Now we will move on to adding space for the skybox. the players eye is at 64 units, and the common wall height is 128 units. So when you add your second floor you will most likely want to make it 128 units from the existing floor. The current skybox is 128 units above the floor, so when you move the height of the skybox you will want to make it 128 units above the second floor. This provides ample room for the player to maneuver unhindered by the skybox collision. Begin changing the skybox size by bringing the skybox brush up 128 units like so:



Then, you may shift drag the walls of the existing map up to produce a copy of them 128 units above the floor. This means that they would be colliding, but not intersecting. like so:



Then you can select the skybox texture and apply it to the copied walls.



Now you have a skybox that is a taller than it was before. It can fit another floor within the map. Begin adding the new floor by selecting the brush tool from the left side of the hammer window. Then drag out a cube that spans the entire map so far and is roughly 1/3 the width of the room. In my map within the top view it's 256 units wide and 896 units tall. however in your map it could be a different scale. 

You will have to move your player spawn to prevent your player from spawning inside the new floor.


Now you need to begin texturing the new floor. Start by using the texture browser to look for a wall that suits your map. You may choose to use the same texture that you have on your current wall. After you've made a decision texture both sides that are showing of your new floor.



Now what's left is to add stairs.  Stairs in hammer are not very complicated. There are textures that are aligned for stairs. And there's also a texture that shows the sizing of stairs. A stair step within hammer is eight units tall and twelve units long. It has a rise of eight units and a run of twelve. Here's an example of one stair step.


You will need to begin texturing the stairs. Press the texture browse button and use the filter text box to look for "stairs ".  You will find several examples of stairs and may you may choose any of those stairs.  After you've made a decision you need to apply the texture to the stair. Here's an example of a textured stair.


After you have textured the top and bottom of the stair step you can shift copy each staircase above the previous. Making the upper back edge meet with the new stairs step's lower front edge.  Copy each step so that it is above the other and then eventually the stairs will reach the new floor.



Now, you need to drag each edge of the stair down, so that it rests on the floor.



You can search for a texture that you can apply to the sides of the stairs.  Or you can use the current wall texture and apply that to the stair's sides. like so:



Once you have completed that you are ready to compile. press the compile button and then use the normal options. like so:


This is what it will look like in game:


As a side note you might want to copy the existing stairs to the other side of your new floor, that way when you fall off you can get back up.
« Last Edit: June 13, 2010, 07:14:33 pm by God » Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

 

TinyPortal v1.0.5 beta 1© Bloc

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!