S
S
Sergey Grigorov2018-07-09 04:10:58
C++ / C#
Sergey Grigorov, 2018-07-09 04:10:58

Character questions in Unreal Engine 4?

Hello.
I understand game development, and there is not so much documentation there as I expected.
I have a few questions:
1. Character.
There is a certain player model, as well as animations for it - walking, etc.
I imported all this stuff into the Unreal Editor.
I would be grateful if someone shares links to code examples (with explanations):
- Writing a script to move a character (C ++, without Blueprints), as, for example, in Unity3D it was:

void Update(){
    if(Input.GetKey(KeyCode.W))
    {
        // some code
    }

Also a link to an example of camera control (eg transform.rotation, etc. in Unity3D), also C++ without Blueprints.
2. There are several animations for this character. The question follows from the first one:
How to hang the animation playback on our already walking, standing, etc. character?
I guess the "default" standing animation can just be dragged onto it, but how do I start playing the walking animation by stopping the standing animation? Also in C ++, there are a lot of Blueprints examples, but I want to have my own under the hood.
3. There is a set of some items - clothes, etc., all of them are models with animations (for example, a raincoat in a calm state, walking state, running state, jumping state, etc.).
Therefore, there are two questions here:
3.1. How to “hang” a certain item on our character using C ++?
3.2. How to use C++ to play animation for a given item depending on the state?
I know that many of the questions will seem silly, but I hope the community can help.
I want to be helped by links to the things implemented in the questions, where there is a code example to understand the code and read about the classes used in the office. documentation.
Blueprints is not needed, I want to try to implement all this in C ++.
Thank you all in advance and hope you can help :)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Noortvel, 2018-07-09
@Noortvel

A complete example of character s (3d, 2d, fp) can be obtained by creating an appropriate project.
Well, or ( https://docs.unrealengine.com/en-US/Programming/Tu... ).
As for hanging an object, this is already a more difficult topic, but in principle, you can hang several skeletal meshes on a character.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question