- Mastering Unreal Engine 4.X
- Muhammad A.Moniem
- 347字
- 2021-07-14 11:20:38
Chapter 2. Setting Up Your Warrior
Once we have the project set up and running, it is time to start making the game itself and put something together that we can call a playable game.
The most important part of any game is the player controller. Regardless of the game genre and type, the player has to control the game somehow. It may be in the form of controlling the environment or controlling a character through the environment, or even something else.
Because the game we are building here is a third-person type of game, our players will have to control a character (I'm calling him The Gladiator
). This character will be based on the Unreal character class, as it gives us many benefits and saves us lots of time because the character class is basically a Pawn
class and pawns are actors that are controlled either by the player or AI. The character class we are building is going to be fully controlled by mouse and keyboard or the gamepad controller.
Keep in mind that we are building our own character class from scratch and not basing our character on the Unreal one, so this process will take a long time. Almost 90% of Unreal game characters are based on the unreal character class, and that's the reason behind having some base classes shipped with the engine.
The character controller we are going to create will be able to walk, jump, control the camera, play animations, switch weapons, affect enemies, get affected by enemies, show some statistics in the UI, read weapon data from the data tables and, most importantly, die when it is the time to die!
By the end of this chapter, you will be able to:
- Build the character class in C++
- Write movement logic
- Map key inputs into the player controller logic
- Build the character animation blueprint
- Add an animated mesh, and display animations from the character class
- Add sockets to the skeletons
- Build animation blend spaces and use them
- Assign and use any character as the default game character
- 樂學Web編程:網站制作不神秘
- 新手學Visual C# 2008程序設計
- Mastering Swift 2
- Big Data Analytics
- Visual FoxPro程序設計
- Java圖像處理:基于OpenCV與JVM
- Spring 5 Design Patterns
- Oracle數據庫編程經典300例
- Xcode 6 Essentials
- Python程序設計:基礎與實踐
- Appcelerator Titanium Smartphone App Development Cookbook
- Hands-On Data Visualization with Bokeh
- Mastering React Test:Driven Development
- 深入理解C++11:C++11新特性解析與應用
- 3D Printing Designs:Fun and Functional Projects