Book Image

Unreal Engine Game Development Cookbook

By : John P. Doran
Book Image

Unreal Engine Game Development Cookbook

By: John P. Doran

Overview of this book

Table of Contents (18 chapters)
Unreal Engine Game Development Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Building a flickering light


For our first Blueprint, let's make use of the Level Blueprint system to create a simple action of a flickering light. Often a staple of horror games, lights that flicker can cause fear in players of not being able to see certain things for a random period of time.

Getting ready

Before we start working within the Unreal Editor, we will need to have a project to work with:

  1. Open up the Unreal Editor by clicking on the Launch button from the Unreal Engine Launcher.

  2. Start a new project from the Project Browser tab by selecting the New Project tab. Select First person and make sure that With Starter Content is selected and give the project a Name (Cookbook_Chapter8). Once you are finished, click on Create Project.

  3. After the project is opened, go to the Example Code folder, drag and drop the NightScene map provided into your project folder and open it:

How to do it…

In the middle of the map, you'll notice that there is a light. We're going to make this randomly start to flicker...