Book Image

Learning Unreal Engine iOS Game Development

By : Muhammad A.Moniem
Book Image

Learning Unreal Engine iOS Game Development

By: Muhammad A.Moniem

Overview of this book

Table of Contents (18 chapters)
Learning Unreal Engine iOS Game Development
Credits
About the Author
Acknowledgements
About the Reviewers
www.PacktPub.com
Preface
Nodes Database
Index

Building the blueprints


Now is the time to start building the underlying logic for each blueprint, to have a gameplay logic that connects all of the game components together.

Player controller

You may have wondered why we are going to make this player controller. The answer is simple, to enable the ability to detect the swipe event (actually what looks like a swipe, not an actual swipe).

Right-click in your Content Browser, add a new blueprint, and select its base class to be Player Controller. I named it fruitChopperPlayerController. After adding a new blueprint, don't forget to submit it to the correct slot in the Game Mode blueprint that you make in each game.

Double-click on the newly created blueprint and from the Defaults tab, adjust the value of Mouse Interface to enable clicks and touches. Now the blueprints will be able to handle those events.

Fruits blueprints

I mentioned before that all of the fruits share the same logic, so in this step, I'll be showing you how to build one of the...