Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Blueprints Visual Scripting for Unreal engine

You're reading from   Blueprints Visual Scripting for Unreal engine Build professional 3D games with Unreal Engine 4's Visual Scripting system

Arrow left icon
Product type Paperback
Published in Jul 2015
Publisher Packt
ISBN-13 9781785286018
Length 188 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Brenden Sewell Brenden Sewell
Author Profile Icon Brenden Sewell
Brenden Sewell
Arrow right icon
View More author details
Toc

Table of Contents (10) Chapters Close

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...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime