Progress is going really well!
I feel like this is going in a good direction.
The idea was to replicate the control system of watchdogs where moving the joystick in any direction had a supportive animation for the respective direction pressed.
The main problem at first getting hold of the direction in a numerical form so that we can see our direction in respect to the mesh.
https://www.youtube.com/watch?v=wMMKL5Qz9ug
This was getting the camera figuring out what angle it was in relation to the mesh. (This was the toughest problem)
Now that is taken care of, planning had to be taken into account as for how many different directions I would cater to. After experimenting with Watchdogs, I figured out 12 directions would be enough.
The main problem is now getting the controls, animations and degrees to talk to each other.
For the walking animations, I plan to use animation montages, where I have 14 elements
-
Front (Left Foot)
-
Front Left
-
Front Left 2
-
Left
-
Left Back
-
Back (Left Foot)
-
Back (Right Foot)
-
Right Back
-
Right
-
Front Right 2
-
Front Right
-
Front (Right Foot)
-
Walk_Left Foot
-
Walk_Right Foot
I’m going to add jogging and running later, but walking is the concern for now.
The question I have now is this…
Lets say the degrees is at -0 - -20 which is Front(Left Foot)
If I were to press W (which is walk forward) I want the character to play the montage section as:
(1) [14][13]] Loop
[Front (Left Foot)][Walk_Right Foot][Walk_Left Foot]Loop]
But if I turn the camera to lets say (-110) - (-80) and I press W (Walk Forward)
I know now the animation montage played need to be “Left” now, so it changes depending on which direction the camera is facing. This also counts not just for the moving forward key, but also the walk backwards, walk left and right [W A S D] (though im not sure how to incorporate diagonals into this)
So basically saying, the WASD keys will play different sections of animation montages depending on where the camera is facing.
I know what needs to be done, I can think it in my head, but I don’t know how to turn those thoughts into visual code BP.
I feel this is very complex.
I will need help on this one.
Thanks


