Movement Input Problem
I have two playable character and whenever I swap to the other character the movement direction controls change itself, depending on what way the character is facing. For an example, when game starts the character is facing the top of the screen, so when I press W it moves to the top which is the direction needed. If I swap to the next character and it is facing the bottom of the screen the W button moves the character towards the bottom, not the top. Same as the right and left. I had this problem with the camera too but that was solved by not allowing the Pitch row and yaw to move. However I cannot find out a way to lock the controls to the world axis.
asked Mar 07 '18 at 04:05 PM in Blueprint Scripting
What node are you using to move? I use AddMovementInput in the character/pawn. That takes a world direction so I actually have to add nodes to get it to consider 'forward' to be where the character is facing.
That means you can just plug in a world vector there. You'd use (1,0,0) for the Forward/Back movement and (0,1,0) for the Right/Left movement.
Follow this question
Once you sign in you will be able to subscribe for any updates here