So far i have managed to do exactly what i just asked. However there is a problem. So far my logic runs like this:
I have an action input for running, and it uses Shift key.
Then, in the character blueprint, i have a boolean check if it is pressed or not.
If Run action is not pressed, MoveForward Axis value will be divided by specific number to create “Walking speed”.
If Run action is pressed, MoveForward axis value will be default.
So far my logic is working, however there is a problem. When for example W and A are both pressed, movement speed will get doubled. I am trying to create a boolean whether both are pressed or not, the create specific movement speed to deal with the issue. But my problem with it is this:
Is the situation in the picture even possible? InputAxis event does not have a RELEASED -statement.
How can i create a Set boolean for InputAxis being released? So far i have not figured out any way. And if the situation should work in the picture, please tell me!
If there is better way to create walking speed as a default, and the sprint speed when shift is pressed, please tell me!
So far the whole mess looks like this: