How can I restrict movement to just 2 axis?
I have a simple question which seems easy to resolve (just can't figure it out).
I have a top down project which used W,A,S,D to move.
I do not want the player to be able to move diagonal...
So when W is pressed the player moves forward, when A / D are pressed at the same time I want the player to move left / right (I do not want them going diagonal).
asked Jul 15 '17 at 03:13 AM in Blueprint Scripting
use this node
if x value != 0 means it's moving on horizontal axis, so if x!=0 you don't allow the input from w and s, use a branch, analog for y and 'a' and 'd'
tell me if it gives you some problem.
answered Jul 15 '17 at 03:36 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here