Difference between revisions of "Clock"

From Valve Developer Community
Jump to: navigation, search
Line 8: Line 8:
 
=Adding the timer brushes=
 
=Adding the timer brushes=
 
Minutes, seconds, centiseconds and milliseconds are '''''func_brushes'''''
 
Minutes, seconds, centiseconds and milliseconds are '''''func_brushes'''''
{{Note|Use grid number 2}}
+
{{Tip|Use grid number 2}}
 
This is the order of making the brushes:
 
This is the order of making the brushes:
  
Line 31: Line 31:
 
====6. Dot====
 
====6. Dot====
 
#2x10 brush. Same as the other Dots
 
#2x10 brush. Same as the other Dots
{{Note|Copy paste is helpful here!}} {{clr}}
+
{{Tip|Copy paste is helpful here!}} {{clr}}
 
====7. Milliseconds====
 
====7. Milliseconds====
 
# 10x10 brush, texture: '''''signage/clock/clock_milliseconds''''', just like the other ones
 
# 10x10 brush, texture: '''''signage/clock/clock_milliseconds''''', just like the other ones
Line 39: Line 39:
 
After all the work, it should like in the photo in the right
 
After all the work, it should like in the photo in the right
  
{{Note|It's recommended to select the texture of teh brushes and press "Fit" for a better quality.}}  
+
{{Tip|It's recommended to select the texture of teh brushes and press "Fit" for a better quality.}}  
 
=Logic entities: The hard part!=
 
=Logic entities: The hard part!=
 
Now that we made the brushes, we need to work with the entities that will make the timer count down!
 
Now that we made the brushes, we need to work with the entities that will make the timer count down!

Revision as of 13:27, 19 February 2013

This tutorial will show you how to make the beggining-clock as shown in the image to the right.

Adding the model

  1. By using the Entity tool, click somewhere in the 3D view
  2. Make it prop_static
  3. Open the properties and click "Select Model:"
  4. Select models/props/clock.mdl

Adding the timer brushes

Minutes, seconds, centiseconds and milliseconds are func_brushes

Tip:Use grid number 2

This is the order of making the brushes:

1. Minutes

  1. In the top view make a 10x10 brush with the texture signage/clock/clock_minutes
  2. Press Ctrl+T and make it func_brush
  3. Name it: "Minutes"

2. Dot

  1. Make a 2x10 brush NEXT TO the brush we made before.

(Optional) 2. Press Ctrl+T to make it func_detail

3. Seconds

  1. Same thing as "Minutes" but with a different texture. Use signage/clock/clock_seconds
  2. Name it: "Seconds"

4. Dot

How it must look after adding the brushes.
  1. NEXT TO "Seconds" make a 2x10 brush just like before.

5. Centiseconds

  1. Same thing as "Seconds" and "Minutes" but with different texture. Use signage/clock/clock_centiseconds
  2. Name it: "Centiseconds"

6. Dot

  1. 2x10 brush. Same as the other Dots
Tip:Copy paste is helpful here!

7. Milliseconds

  1. 10x10 brush, texture: signage/clock/clock_milliseconds, just like the other ones
  2. Name it: "Milliseconds"


After all the work, it should like in the photo in the right

Tip:It's recommended to select the texture of teh brushes and press "Fit" for a better quality.

Logic entities: The hard part!

Now that we made the brushes, we need to work with the entities that will make the timer count down!