Creating A Portal Background

From Valve Developer Community
Jump to: navigation, search
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. Uncheck Start At Player and Follow Player.

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