Unreal Engine 5 Game Development with C++ Scripting by ZHENYU GEORGE LI
Author:ZHENYU GEORGE LI
Language: eng
Format: epub
Publisher: Packt
Published: 2023-10-15T00:00:00+00:00
Controlling Characters
In Chapter 6, we created our player character, the PlayerAvatar class, and the BP_PlayerAvatar blueprint. The next thing we want to do is to control the player character. Since the engine automatically generated the default PangaeaPlayerController class when the project was created, moving the player character is already functional. However, that is not enough because we want more control over the player character.
In this chapter, you will learn how to add a new input action to the action map, handle an input event to trigger an attack, as well as how to add a notify to the timelines of attack, hit, and die animations.
This chapter will also introduce the concept of garbage collection, which is the engineâs important mechanism for memory management; the code for destroying characters demonstrates how to manually trigger garbage collection.
Additionally, you will learn how to create an enemy character and control the enemy with AIController. This entails enabling the enemy to sense and chase the player and make decisions to attack, as well as handling destruction upon being defeated.
Both EnemyController and PangaeaPlayerController move the controlled character with the pathfinding algorithm, based on the NavMesh system, so we will explain the essential concepts of pathfinding and demonstrate the practical setup process within the game map.
This chapter covers the following topics:
Controlling the player character to attack
Destroying actors
Creating the enemy character
Testing the game
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Practical Guide to Azure Cognitive Services by Chris Seferlis & Christopher Nellis & Andy Roberts(6205)
Unity Artificial Intelligence Programming - Fifth Edition by Dr. Davide Aversa(5799)
Serverless ETL and Analytics with AWS Glue by Vishal Pathak Subramanya Vajiraya Noritaka Sekiyama Tomohiro Tanaka Albert Quiroga Ishan Gaur(4835)
Open Source Projects - Beyond Code by John Mertic(3909)
The AI Product Manager's Handbook by Irene Bratsis(3874)
Graph Data Modeling in Python by Gary Hutson and Matt Jackson(3865)
Cloud Auditing Best Practices by Shinesa Cambric & Michael Ratemo(3504)
Aligning Security Operations with the MITRE ATT&CK Framework by Rebecca Blair(3478)
Graph Data Processing with Cypher by Anthapu Ravindranatha;(1674)
Data Literacy in Practice - A complete guide to data literacy and making smarter decisions with data through intelligent actions (2022) by Packt(1651)
Serverless Machine Learning with Amazon Redshift ML: Create, train, and deploy machine learning models using familiar SQL commands by Debu Panda Phil Bates Bhanu Pittampally Sumeet Joshi(1547)
Network Automation with Go by Nicolas Leiva & Michael Kashin(1502)
Applied Machine Learning and High-Performance Computing on AWS by Mani Khanuja | Farooq Sabir | Shreyas Subramanian | Trenton Potgieter(1314)
Data Literacy in Practice by Angelika Klidas Kevin Hanegan(1311)
Unreal Engine 5 Game Development with C++ Scripting by Zhenyu George Li(1305)
Graph Data Processing with Cypher by Ravindranatha Anthapu(1296)
Implementing Multifactor Authentication: Protect your applications from cyberattacks with the help of MFA by Marco Fanti(1179)
Fuzzing Against the Machine: Automate vulnerability research with emulated IoT devices on QEMU by Antonio Nappa Eduardo Blazquez(1168)
The AI Product Manager's Handbook: Develop a product that takes advantage of machine learning to solve AI problems by Irene Bratsis(1024)
