O'Reilly logo

UnrealScript Game Programming Cookbook by Dave Voyles

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Writing the TutorialCamera class

With our game type in place, we now need to write the code for our TutorialCamera and TutorialCameraProperties classes. The properties class includes the variables we will expose to the UDK editor. Coming back around to the archetypes we spoke about earlier, our camera will now be made into one, which is what allows its properties (TutorialCameraProperties.uc) to be manipulated in the editor.

Getting ready

We'll need to launch our IDE of choice here, and create the TutorialCamera class by creating a file called TutorialCamera.uc class in our Classes folder (C:\UDK\July\Development\Src\Tutorial\Classes).

How to do it...

The first thing we'll need is a Camera class to store all of our variables and functions in. We'll ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required