Building an RPG with Unreal 4.x
eBook - ePub

Building an RPG with Unreal 4.x

Steve Santello, Alan R. Stagner

Compartir libro
  1. 360 páginas
  2. English
  3. ePUB (apto para móviles)
  4. Disponible en iOS y Android
eBook - ePub

Building an RPG with Unreal 4.x

Steve Santello, Alan R. Stagner

Detalles del libro
Vista previa del libro
Índice
Citas

Información del libro

Get to grips with building the foundations of an RPG using Unreal Engine 4.xAbout This Book• Utilize a mixture of C++, Blueprints, and UMG to create a role playing game (RPG) efficiently• Create reusable code chunks and elements that can easily be integrated into other games• A cost effective, step-by-step guide to building and customizing an entire framework for your RPGWho This Book Is ForIf you are new to Unreal Engine and always wanted to script an RPG, you are this book's target reader. The lessons assume you understand the conventions of RPG games and have some awareness of the basics of using the Unreal editor to build levels.What You Will Learn• Program gameplay elements in C++ in Unreal• Create custom game data for entities such as players and enemies• Create a turn-based combat engine• Design menu systems and blueprint logic• Create an NPC and dialog system• Integrate equipment and items• Develop the foundations of a saving and loading systemIn DetailNow that Unreal Engine 4 has become one of the most cutting edge game engines in the world, developers are looking for the best ways of creating games of any genre in the engine. This book will lay out the foundation of creating a turn-based RPG in Unreal Engine 4.12.The book starts by walking you through creating a turn-based battle system that can hold commands for party members and enemies. You'll get your hands dirty by creating NPCs such as shop owners, and important mechanics, that make up every RPG such as a currency system, inventory, dialogue, and character statistics. Although this book specifically focuses on the creation of a turn-based RPG, there are a variety of topics that can be utilized when creating many other types of genres.By the end of the book, you will be able to build upon core RPG framework elements to create your own game experience.Style and approachYou will follow a series of lessons detailing the elements that contribute to an RPG. By the end of the book, you will have considerably leveled up your ability to make your own game

Preguntas frecuentes

¿Cómo cancelo mi suscripción?
Simplemente, dirígete a la sección ajustes de la cuenta y haz clic en «Cancelar suscripción». Así de sencillo. Después de cancelar tu suscripción, esta permanecerá activa el tiempo restante que hayas pagado. Obtén más información aquí.
¿Cómo descargo los libros?
Por el momento, todos nuestros libros ePub adaptables a dispositivos móviles se pueden descargar a través de la aplicación. La mayor parte de nuestros PDF también se puede descargar y ya estamos trabajando para que el resto también sea descargable. Obtén más información aquí.
¿En qué se diferencian los planes de precios?
Ambos planes te permiten acceder por completo a la biblioteca y a todas las funciones de Perlego. Las únicas diferencias son el precio y el período de suscripción: con el plan anual ahorrarás en torno a un 30 % en comparación con 12 meses de un plan mensual.
¿Qué es Perlego?
Somos un servicio de suscripción de libros de texto en línea que te permite acceder a toda una biblioteca en línea por menos de lo que cuesta un libro al mes. Con más de un millón de libros sobre más de 1000 categorías, ¡tenemos todo lo que necesitas! Obtén más información aquí.
¿Perlego ofrece la función de texto a voz?
Busca el símbolo de lectura en voz alta en tu próximo libro para ver si puedes escucharlo. La herramienta de lectura en voz alta lee el texto en voz alta por ti, resaltando el texto a medida que se lee. Puedes pausarla, acelerarla y ralentizarla. Obtén más información aquí.
¿Es Building an RPG with Unreal 4.x un PDF/ePUB en línea?
Sí, puedes acceder a Building an RPG with Unreal 4.x de Steve Santello, Alan R. Stagner en formato PDF o ePUB, así como a otros libros populares de Computer Science y Programming Games. Tenemos más de un millón de libros disponibles en nuestro catálogo para que explores.

Información

Año
2016
ISBN
9781785281280
Edición
1

Building an RPG with Unreal 4.x


Table of Contents

Building an RPG with Unreal 4.x
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. Getting Started with RPG Design in Unreal
Tools for game design
Google Drive
Google Docs
Google Spreadsheets
Pencil and paper
The design and concept phase
Concept
Design
Describing the game's features and mechanics
Tropes in existing role-playing games
Stats and progression
Classes
Special abilities
RPG design overview
Setting
Exploration
Dialogue
Shopping
Gold
The pause screen
Party members
Equipment
Classes
Soldier
Combat
Combat stats
Combat actions
Attack
Ability
After combat/victory
Loot
Experience
Experience and leveling
Stat increases
Learning abilities
Game over
Choosing the right formula
Summary
2. Scripting and Data in Unreal
Downloading Unreal
Downloading Visual Studio
Setting up Visual Studio for Unreal
Adding the Solution Platforms drop-down list
Disabling the Error List tab
Setting up a new Unreal project
Creating a new C++ class
Blueprints
Creating a new Blueprint
Adding a Blueprint to the scene
Blueprints for Actor classes
Using Data Tables to import spreadsheet data
The spreadsheet format
A sample spreadsheet
The Data Table struct
Importing the spreadsheet
Querying the spreadsheet
Summary
3. Exploration and Combat
Creating the player pawn
The Pawn
The GameMode class
Adding the skinned mesh
Defining characters and enemies
Classes
Characters
Enemies
Party members
The GameInstance class
Turn-based combat
Performing actions
Making decisions
Target selection
Dealing damage
Combat UI with UMG
UI-driven decision making
Creating the game over screen
Summary
4. Pause Menu Framework
UMG pause screen initial setup
UMG background color
UMG text
UMG buttons
The UMG inventory submenu
The UMG equipment submenu
Key binding
Button programming
Summary
5. Bridging Character Statistics
Getting character data
Getting player instances
Displaying stats
Summary
6. NPCs and Dialog
Creating the NPC Character Blueprint
Interacting with the NPC
Dialog box setup
Creating an NPC welcome box
Adding an NPC talk box
Summary
7. Gold, Items, and a Shop
Setting and getting gold instances
Item data
The shop screen framework
The item button framework
Linking the item data
Summary
8. Inventory Population and Item Use
Creating the FieldPlayer Booleans
Determining whether the inventory screen is on or off
Logical difference between the inventory and shop items
Finishing the inventory screen
Buying items
Using items
Summary
9. Equipment
The weapons Data Table
Setting the weapon and equipment screen variables
Creating the weapon button
Revisiting the equipment screen
Setting the equipment screen Text Blocks
Correcting the character stats when equipping
Summary
10. Leveling, Abilities, and Saving Progress
XP and leveling source code
Data Table starting values
Displaying levels and experience in the pause menu
Applying the correct damage in combat
Setting up the abilities array
Abilities logic
Saving and loading game progress
Saving
Loading
Summary
Index

Building an RPG with Unreal 4.x

Copyright © 2016 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the authors, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: January 2016
Production reference: 2100816
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78217-563-6
www.packtpub.com

Credits

Authors
Steve Santello
Alan R. Stagner
Reviewers
Patrick Dinklage
Scott Hafner
Marcin Kamiński
Alankar Pradhan
Commissioning Editor
Edward Bowkett
Acquisiti...

Índice