Book Image

Learning Unreal Engine Android Game Development

By : Nitish Misra
Book Image

Learning Unreal Engine Android Game Development

By: Nitish Misra

Overview of this book

<p>Have you ever wanted to create games that will get users hooked to their phones? Unreal Engine 4, with all its tools and power, will help make your dreams come true! Designed to get you working with Unreal Engine 4 from the very first page, this book will quickly guide you through the basics in the first two chapters. Once you get the hang of things, we will start developing our game—Bloques!</p> <p>Bloques is a puzzle game with four rooms. Each room will be more challenging than the previous, and as you develop, you will graduate from movement and character control to AI and spawning. Once you've created the game, you will learn how to port and publish your game to the Google Play Store.</p> <p>In addition to building an Android game from start to finish, you will also discover how to generate revenue, and how to optimize game performance using the tools and functionalities the engine provides. With this book, you will be inspired to come up with your own great ideas for your future game development projects.</p>
Table of Contents (15 chapters)
Learning Unreal Engine Android Game Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Using Level Blueprint in the game


With all the basics out of the way, we can begin scripting our game. One thing you should know is that we might add more triggers and actors as we go along.

Key cube pickup and placement

The first thing that we are going to script is the player picking up the key cube. Now, when the player is close enough to the key cube and taps on it on their screen, they will be able to pick up the cube. In our case, to give the illusion that the player has picked up the key, we are going to destroy the actor when the player taps on it on the screen. Also, we will place a replica of the key cube on top of the pedestal at the very beginning and keep it hidden at the start of the game. When the player has picked up the cube and is close enough to the pedestal, tapping on the screen will unhide the cube from the game, giving the impression that the character has placed the key on the pedestal. So, let's set that up. Firstly, with the key cube selected, hold down the Alt button...