当前位置:网站首页>UE4 - how to make a simple TPS role (I) - create a basic role

UE4 - how to make a simple TPS role (I) - create a basic role

2022-07-06 02:18:00 qq_ twenty million seven thousand one hundred and seventy-one

open UE4 Enter the create project interface , Choose the game , The third person project goes to the next step

  Create a project according to the following configuration , Name arbitrary , Be sure to include beginner content !!! Related to the use of later materials

After the project is created , So let's create one Level Folder , Create a basic level in the folder

Add terrain and lights to the basic level , so UE Learning notes ( Four )- How to create a basic level from zero _ Edward peak blog -CSDN Blog

At this point, we need to create a basic mobile , The role of sprinting

First, create a role blueprint , Create a new role folder character. Create a Character Blueprint of type

  • Pawn It's a actor.Pawn Can be Controller hold , They can receive input , Can do a lot of game logic .
  • Character It's a human style Pawn, Inherited from Pawn. He took one by default Capsule impactor and Character motion components . He can do basic humanoid movement , It can copy and move smoothly and has some animation related functions .

Name the blueprint you just created TPS_Nova, And open him

After entering the game, you can already see some basic default content - Capsule body , Arrow assembly , Mesh body , The character moves four contents

Let's replace the model first , Select mesh body , Find the target villain in the grid on the right :SK_Mannequin

We will adjust the rotation and distance of the imported protagonist , Make it fit with the capsule , And the direction of the body is consistent with the direction of the arrow

Next, we need a camera to check the behavior of the character , Add spring arm , camera , And set the camera as a substructure of the spring arm

  Switch to the level interface , In the world scene settings , Set the default in game mode pawn Set it to what we just did TPS_Nova

Run the game , At this time, we can see a basic villain displayed in the game  

原网站

版权声明
本文为[qq_ twenty million seven thousand one hundred and seventy-one]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202140026201990.html