Book Image

Blueprints Visual Scripting for Unreal Engine

By : Brenden Sewell
Book Image

Blueprints Visual Scripting for Unreal Engine

By: Brenden Sewell

Overview of this book

Blueprints Visual Scripting for Unreal Engine is a step-by-step approach to building a fully functional game, one system at a time. Starting with a basic First Person Shooter template, each chapter will extend the prototype to create an increasingly complex and robust game experience. You will progress from creating basic shooting mechanics to gradually more complex systems that will generate user interface elements and intelligent enemy behavior. Focusing on universally applicable skills, the expertise you will develop in utilizing Blueprints can translate to other types of genres. By the time you finish the book, you will have a fully functional First Person Shooter game and the skills necessary to expand on the game to develop an entertaining, memorable experience for your players. From making customizations to player movement to creating new AI and game mechanics from scratch, you will discover everything you need to know to get started with game development using Blueprints and Unreal Engine 4.
Table of Contents (15 chapters)
Blueprints Visual Scripting for Unreal Engine
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Spawning more enemies during gameplay


Now that we are able to destroy enemies, we need to again ramp up the difficulty for the player. To do so, we are going to spawn new enemies in the level as the player is playing the game. In this way, the game can continue if the player destroys the first few enemies, and if they are too slow to defeat enemies, the difficulty will gradually increase.

Choosing a spawn point where enemies will appear

First, we must decide where our enemies will be spawning in the level. We will be spawning enemies in random spots within a circular distance from an object placed in the level. Return to the level editor by clicking on the FirstPersonExampleMap tab. Find the PatrolPoint1 object in the World Outliner panel. Duplicate the object by right-clicking on it, selecting Edit, and then selecting Duplicate. Rename the new object to SpawnPoint. Move the SpawnPoint object close to the center of your level, ensuring that it is located a bit off the ground in a player- and...