Book Image

Learning Unreal Engine iOS Game Development

By : Muhammad A.Moniem
3 (1)
Book Image

Learning Unreal Engine iOS Game Development

3 (1)
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


Now it is time to put everything together and start building the connections between all of the blueprints. In fact, it is easier than it looks like, and with that in mind, let's start.

uiText

To change the score value, I've added a custom event and called it setScore. This custom event will be working on setting the value of the Score variable by adding 1 to it using the integer + integer node. The final result of the score value will be displayed in the UI using the Set text node. Keep in mind that you can use whatever values you want, as long as you are using the add node. This node will be working on adding the first passed integer value to the second passed integer.

I wanted to follow a new method to change the value of ammo, which is closer to the code environment that I have used over the years. It is called passing parameters. Basically, when I called an event or function, I wanted to send the exact new value directly to it, and then use it to set the ammo text based...