Difference between revisions of "Creating A Portal Background"

From Valve Developer Community
Jump to: navigation, search
m
Line 1: Line 1:
{{Morescreenshots}}
 
 
__NOTOC__
 
__NOTOC__
 
{{back | Portal Level Creation}}
 
{{back | Portal Level Creation}}
Line 6: Line 5:
  
 
==Camera==
 
==Camera==
 +
[[Image:PortalCameraTutorial1.png|thumb|right|200px|Click to enlarge.]]
 +
[[Image:PortalCameraTutorial2.png|thumb|right|200px|Click to enlarge.]]
 
Create a <code>[[point_viewcontrol]]</code> and enter the following properties:
 
Create a <code>[[point_viewcontrol]]</code> and enter the following properties:
  
Line 19: Line 20:
  
 
==Camera Movement==
 
==Camera Movement==
 +
[[Image:PortalCameraTutorial3.png|thumb|right|200px|Click to enlarge.]]
 +
[[Image:PortalCameraTutorial4.png|thumb|right|200px|Click to enlarge.]]
 +
[[Image:PortalCameraTutorial5.png|thumb|right|200px|Click to enlarge.]]
 
Create a <code>[[func_movelinear]]</code> with the <code>[[nodraw]]</code> texture and enter the following properties:
 
Create a <code>[[func_movelinear]]</code> with the <code>[[nodraw]]</code> texture and enter the following properties:
  
Line 42: Line 46:
  
 
Go to flags and check <code>Not Solid</code>
 
Go to flags and check <code>Not Solid</code>
 
+
[[Image:PortalCameraTutorial6.png|thumb|right|200px|Click to enlarge.]]
 
Create a <code>[[logic_auto]]</code> entity and enter the following outputs:
 
Create a <code>[[logic_auto]]</code> entity and enter the following outputs:
 
{| class=standard-table
 
{| class=standard-table

Revision as of 11:13, 2 November 2019

Portal Level Creation

Introduction

This guide will tell you how to create a background.

Camera

Click to enlarge.
Click to enlarge.

Create a point_viewcontrol and enter the following properties:

Property Name Value
Name background_cam
Entity to Look At background_move

Go to Flags and check Freeze Player and Infinite Hold Time

Camera Movement

Click to enlarge.
Click to enlarge.
Click to enlarge.

Create a func_movelinear with the nodraw texture and enter the following properties:

Property Name Value
Name background_move
Move Direction (Your Choice)
Speed (Your choice, 16 is a good number.)
Move Distance (Your choice)
My Output Target Entity Target Input Parameter Delay Only Once
Io11.png OnFullyClosed !self Open <None> 0.00 No
Io11.png OnFullyOpen !self Close <None> 0.00 No

Go to flags and check Not Solid

Click to enlarge.

Create a logic_auto entity and enter the following outputs:

My Output Target Entity Target Input Parameter Delay Only Once
Io11.png OnMapSpawn background_move Open <None> 0.00 No
Io11.png OnMapSpawn background_cam Enable <None> 0.00 No

See Also