Hello everyone again.
I have the slight feeling, that I create to many topics, but I need the knowledge.
As I already mentioned in
I’m trying to create a First-Person-Shooter with a playable character.
I have many questions, but I try to unify them in a few topics.
This is my current work.
With W-A-S-D keys the character should be moving while an animation is played.
Currently, the character moves in the direction of z-axis, while holding W-key. But the animation doesn’t play correctly, because the key is fired constantly. I know I have to call the function outside/without switch-case, but I don’t know how. Probably with a true/false statement.
There are many forums with a similar problem, but no solution was working for me.
So my questions are:
1. How do I get the animation played and moving the character only while key is pressed?
2. How do I get the character moving in the direction of the camera?
3. How do I get the run animation played, when w and shift are pressed at the same time?
I hope at least one question can be solved
As always, thank you in advance.