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 logic


As you may have noticed while building the blueprints, the only two blueprints that can possibly hold logic were the Character type blueprint called madScientist and the Actor type blueprint called levelLayout. The first one will hold the logic for the controller and anything related to the player, while the second will hold the logic for the level movement/generation of collectables and score updating.

  • On Event Begin Play, I will be using View Target With Blend to set the current camera view as the main camera for this level.

  • Then, add a custom event called addScore to be the one that will control the Collectables Score variable of type int that holds the score result. Next, use the resultant final score to be displayed by the UI Score text object using the Set Text node and pass the Collectables Score value as a string using the Int to String conversion node.

  • Now on the Tick event, which takes place in every frame, we will be checking whether the Collectables Score value...