Input Axis MoveRight always return 0

I mapped W,A,S,D directions for a top down shooter I am working right now. I wanted to get the axis values of both MoveForward and MoveRight. I expect both should return either 1 or -1 respectively. But for some reason only MoveForward return 1 or -1. MoveRight stays at 0 all the time.

Please help! I don’t know what to do.

Have you double-checked your input bindings? Especially the scale values. And how do you know that MoveRight is 0 when you press A or D? Have you printed the value to the log/screen?

Hi, thanks for the reply.

I figured what the problem was. I was using the same float variable for both MoveForward and MoveRight. It only gets the value of the former. I fixed it by making a separate float variable for the MoveRight.

How do I put “[SOLVED]” for this question? I’m sorry I’m very ignorant.