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! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Unreal Engine 4.X By Example

You're reading from   Unreal Engine 4.X By Example An example-based practical guide to get you up and running with Unreal Engine 4.X

Arrow left icon
Product type Paperback
Published in Jul 2016
Publisher Packt
ISBN-13 9781785885532
Length 506 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
 Carnall Carnall
Author Profile Icon Carnall
Carnall
Arrow right icon
View More author details
Toc

Table of Contents (17) Chapters Close

Unreal Engine 4.X By Example
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
1. Introduction to Unreal Engine 4 2. Blueprints and Barrels – Your First Game FREE CHAPTER 3. Advanced Blueprint, Animation, and Sound 4. Unreal Engine, C++, and You 5. Upgrade Activated – Making Bounty Dash with C++ 6. Power Ups for Your Character, Power Ups for the User 7. Boss Mode Activated – Unreal Robots 8. Advanced AI and Unreal Rendering 9. Creating a Networked Shooter 10. Goodbyes and Thank yous Index

Getting our barrels rolling


With our level blocked out we can begin to place our Gameplay-centric actors into the level and add the appropriate functionality to them. In this case, we will be creating the barrels. We are going to need to create a barrel object that rolls with physics, destroys the player when the two collide and destroys itself when it reaches the bottom of the level. We are also going to have to create an object that handles spawning these barrels at certain intervals.

The first thing we need to do is create a new blueprint that inherits from Actor called BH_Barrel. It is going to be a physics-driven actor that will be one of the key elements in the game world, so create this new blueprint now. BH_Barrel will start with the same default components we are used to seeing when working with a new actor. We need to add a visual component to our BH_Barrel. Add a Cylinder shape via the Add Component button now. The Cylinder will be used as our Barrel Mesh. Let's make an attempt...

You have been reading a chapter from
Unreal Engine 4.X By Example
Published in: Jul 2016
Publisher: Packt
ISBN-13: 9781785885532
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 £13.99/month. Cancel anytime
Visually different images