Book Image

Mastering Unreal Engine 4.X

By : Muhammad A.Moniem
Book Image

Mastering Unreal Engine 4.X

By: Muhammad A.Moniem

Overview of this book

Unreal Engine 4 has garnered a lot of attention in the gaming world because of its new and improved graphics and rendering engine, the physics simulator, particle generator, and more. This book is the ideal guide to help you leverage all these features to create state-of-the-art games that capture the eye of your audience. Inside we’ll explain advanced shaders and effects techniques and how you can implement them in your games. You’ll create custom lighting effects, use the physics simulator to add that extra edge to your games, and create customized game environments that look visually stunning using the rendering technique. You’ll find out how to use the new rendering engine efficiently, add amazing post-processing effects, and use data tables to create data-driven gameplay that is engaging and exciting. By the end of this book, you will be able to create professional games with stunning graphics using Unreal Engine 4!
Table of Contents (22 chapters)
Mastering Unreal Engine 4.X
Credits
About the Author
Acknowledgments
About the Reviewer
www.PacktPub.com
Preface
Index

Creating the blueprint


As we discussed earlier in Chapter 2, Setting Up Your Warrior, when we finish creating the C++ code, it is not usable until we build a blueprint based on it. That's in the majority of cases, and it's the case here.

In order to put an instance of the Enemy class into the level, we have to have a blueprint based on it first, in the same way you used to create blueprints. But this time, the base class will be Enemy, as this is the main class we want to use for it.

But as you remember, we will always need to change default values. Despite this, you can set almost all the values within the constructor of the class, but still some values will be faster to set within the editor itself.

I've changed some settings, such as the animation blueprint value I've set to use the Bear_animationBlueprint that I've created especially for the bear enemy.

Because the blueprint we are finishing here is for an AI, there are even more values we have to set. For example, my Enemy and AIController...